@@ -1744,10 +1744,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
1744
1744
type <code>button</code>, meaning they have the local name "<code data-x="">button</code>" and
1745
1745
(implicitly as defined above) the <span>HTML namespace</span>.</p>
1746
1746
1747
- <p>Attribute names are said to be <dfn>XML-compatible</dfn> if they match the <code
1748
- data-x="xml-Name">Name</code> production defined in XML and they contain no U+003A COLON
1749
- characters (:). <ref>XML</ref></p>
1750
-
1751
1747
1752
1748
<h4>DOM trees</h4>
1753
1749
@@ -3345,6 +3341,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
3345
3341
<li><dfn data-x-href="https://dom.spec.whatwg.org/#abortcontroller-signal-abort">signal abort</dfn></li>
3346
3342
<li><dfn data-x="AbortSignal-add" data-x-href="https://dom.spec.whatwg.org/#abortsignal-add">add</dfn></li>
3347
3343
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name">get an attribute by name</dfn> algorithm</li>
3344
+ <li><dfn data-x-href="https://dom.spec.whatwg.org/#valid-attribute-local-name">valid attribute local name</dfn></li>
3348
3345
<li><dfn data-x-href="https://dom.spec.whatwg.org/#valid-element-local-name">valid element local name</dfn></li>
3349
3346
</ul>
3350
3347
@@ -14242,8 +14239,8 @@ background: transparent">blue</span>.</p></code></pre>
14242
14239
14243
14240
<p>A <dfn>custom data attribute</dfn> is an attribute in no namespace whose name starts with the
14244
14241
string "<dfn><code data-x="attr-data-*">data-</code></dfn>", has at least one character after the
14245
- hyphen, is <span>XML-compatible </span>, and contains no <span data-x="ASCII upper alpha">ASCII
14246
- upper alphas</span>.</p>
14242
+ hyphen, is a <span>valid attribute local name </span>, and contains no <span
14243
+ data-x="ASCII upper alpha">ASCII upper alphas</span>.</p>
14247
14244
14248
14245
<p class="note">All attribute names on <span>HTML elements</span> in <span>HTML documents</span>
14249
14246
get ASCII-lowercased automatically, so the restriction on ASCII uppercase letters doesn't affect
@@ -14429,8 +14426,8 @@ interface <dfn interface>DOMStringMap</dfn> {
14429
14426
14430
14427
<li><p>Insert the string <code data-x="">data-</code> at the front of <var>name</var>.</p></li>
14431
14428
14432
- <li><p>If <var>name</var> does not match the XML <code data-x="xml-Name">Name</code> production,
14433
- throw an <span>"<code>InvalidCharacterError</code>"</span> <code>DOMException</code>.</p></li>
14429
+ <li><p>If <var>name</var> is not a <span>valid attribute local name</span>, then throw an
14430
+ <span>"<code>InvalidCharacterError</code>"</span> <code>DOMException</code>.</p></li>
14434
14431
14435
14432
<li><p><span data-x="concept-element-attributes-set-value">Set an attribute value</span> for the
14436
14433
<code>DOMStringMap</code>'s <span data-x="concept-DOMStringMap-element">associated element</span>
@@ -73326,10 +73323,10 @@ document.body.append(parent);
73326
73323
73327
73324
<p>Any namespace-less attribute that is relevant to the element's functioning, as determined by
73328
73325
the element's author, may be specified on an <span>autonomous custom element</span>, so long as
73329
- the attribute name is <span>XML-compatible </span> and contains no <span data-x="ASCII upper
73330
- alpha">ASCII upper alphas</span>. The exception is the <code data-x="attr-is">is</code> attribute,
73331
- which must not be specified on an <span>autonomous custom element</span> (and which will have no
73332
- effect if it is).</p>
73326
+ the attribute name is a <span>valid attribute local name </span> and contains no <span
73327
+ data-x="ASCII upper alpha">ASCII upper alphas</span>. The exception is the <code
73328
+ data-x="attr-is">is</code> attribute, which must not be specified on an <span>autonomous custom
73329
+ element</span> (and which will have no effect if it is).</p>
73333
73330
73334
73331
<p><span data-x="customized built-in element">Customized built-in elements</span> follow the
73335
73332
normal requirements for attributes, based on the elements they extend. To add custom
0 commit comments