From 1f101eec408839d38a3878d6913b4f37e4b58596 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20He=C3=9F?=
<44900696+CreaTorAlexander@users.noreply.github.com>
Date: Sun, 28 Feb 2021 11:05:46 +0100
Subject: [PATCH] Correct the restrictions on data-* attribute names (#2754)
---
.../en-us/web/html/global_attributes/data-_star_/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/files/en-us/web/html/global_attributes/data-_star_/index.html b/files/en-us/web/html/global_attributes/data-_star_/index.html
index d10015b665e7617..fcc3d2669f8f233 100644
--- a/files/en-us/web/html/global_attributes/data-_star_/index.html
+++ b/files/en-us/web/html/global_attributes/data-_star_/index.html
@@ -18,9 +18,9 @@
The *
may be replaced by any name following the production rule of XML names with the following restrictions:
xml
, whatever case is used for these letters;U+003A
);xml
(case-insensitive).:
).Note that the {{domxref("HTMLElement.dataset")}} property is a {{domxref("DOMStringMap")}}, and the name of the custom data attribute data-test-value will be accessible via HTMLElement.dataset.testValue
(or by HTMLElement.dataset["testValue"]
) as any dash (U+002D
) is replaced by the capitalization of the next letter, converting the name to camelcase.