@@ -6368,16 +6368,21 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
63686368</ol>
63696369
63706370<p> To <dfn export id=concept-element-attributes-change lt="change an attribute">change</dfn> an
6371- <a>attribute</a> <var> attribute</var> to <var> value</var> , with string <var> sink</var> , run these steps:
6371+ <a>attribute</a> <var> attribute</var> to <var> value</var> , with string <var> sink</var> , run these
6372+ steps:
63726373
63736374<ol>
63746375 <li><p> Let <var> oldValue</var> be <var> attribute</var> 's <a for=Attr>value</a> .</p></li>
63756376
63766377 <li><p> <a>Validate and set attribute value</a> <var> value</var> for <var> attribute</var> , with
63776378 <var> attribute</var> 's <a for=Attr>element</a> , and <var> sink</var> .
63786379
6379- <li><p> <a>Handle attribute changes</a> for <var> attribute</var> with <var> attribute</var> 's
6380- <a for=Attr>element</a> , <var> oldValue</var> , and <var> value</var> .
6380+ <li><p> If <var> attribute</var> 's <a for=Attr>element</a> <a lt="has an attribute">has</a>
6381+ an <a>attribute</a> <var> attribute</var> , then <a>handle attribute changes</a> for
6382+ <var> attribute</var> with <var> attribute</var> 's <a for=Attr>element</a> , <var> oldValue</var> , and
6383+ <var> value</var> .
6384+
6385+ <li><p> Otherwise, throw an "{{InvalidStateError!!exception}} " {{DOMException}} .
63816386</ol>
63826387
63836388<p> To <dfn export id=concept-element-attributes-append lt="append an attribute">append</dfn> an
@@ -6389,6 +6394,9 @@ string <var>sink</var> (default ""), run these steps:
63896394 <var> attribute</var> 's <a for="Attr">value</a> for <var> attribute</var> with <var> element</var> ,
63906395 and <var> sink</var> .
63916396
6397+ <li><p> If <var> element</var> <a lt="has an attribute">has</a> an <a>attribute</a>
6398+ <var> attribute</var> , then throw an "{{InvalidStateError!!exception}} " {{DOMException}} .
6399+
63926400 <li><p> <a for=list>Append</a> <var> attribute</var> to <var> element</var> 's
63936401 <a for=Element>attribute list</a> .
63946402
@@ -6512,7 +6520,11 @@ and a string <var>sink</var>:
65126520 <li><p> <a>Validate and set attribute value</a> <var> attr</var> 's <a for="Attr">value</a> for
65136521 <var> attr</var> with <var> element</var> , and <var> sink</var> .
65146522
6515- <li><p> <a lt="replace an attribute">Replace</a> <var> oldAttr</var> with <var> attr</var> .
6523+ <li><p> If <var> element</var> <a lt="has an attribute">has</a> an <a>attribute</a>
6524+ <var> attr</var> , then <a lt="replace an attribute">replace</a> <var> oldAttr</var> with
6525+ <var> attr</var> .
6526+
6527+ <li><p> Otherwise, throw an "{{InvalidStateError!!exception}} " {{DOMException}} .
65166528 </ul>
65176529
65186530 <li><p> Otherwise, <a lt="append an attribute">append</a> <var> attr</var> to <var> element</var>
0 commit comments