You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A custom data attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no ASCII upper alphas.
The text was updated successfully, but these errors were encountered:
To put that in other words: Your source markup represents instructions to the HTML parser — and this instruction:
<pdata-FOO="foo">
…to an HTML parser means exactly the same thing at this instruction:
<pdata-foo="foo">
And in both cases, what the HTML parser creates in the DOM is <p data-foo="foo">.
That is, an HTML parser reads the markup data-FOO="foo" as meaning data-foo="foo".
To clarify a bit further — to an HTML parser, this markup:
URL being validated or code to reproduce error:
The following specifications would be violated.
If the interpretation is incorrect and is a normal validation, please close. 🫣
3.2.6.6 Embedding custom non-visible data with the data-* attributes
The text was updated successfully, but these errors were encountered: