@@ -6412,8 +6412,8 @@ steps:
6412
6412
</ol>
6413
6413
6414
6414
<p> To <dfn id=concept-element-attributes-validate-and-set-value>validate and set attribute value</dfn>
6415
- <var> value</var> for an <a>attribute</a> <var> attribute</var> , with <a for=/>element</a>
6416
- <var> element</var> , run these steps :
6415
+ {{TrustedType}} or a string <var> value</var> for an <a>attribute</a> <var> attribute</var> , with
6416
+ <a for=/>element</a> < var> element</var> :
6417
6417
6418
6418
<ol>
6419
6419
<li><p> Let <var> validValue</var> be the result of calling
@@ -6508,26 +6508,21 @@ or string <var>namespace</var> (default null):
6508
6508
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
6509
6509
<var> namespace</var> , <var> localName</var> , and <var> element</var> .
6510
6510
6511
- <li> If <var> attribute</var> is null, create an <a>attribute</a> whose <a for=Attr>namespace</a> is
6512
- <var> namespace</var> , <a for=Attr>namespace prefix</a> is <var> prefix</var> ,
6513
- <a for=Attr>local name</a> is <var> localName</var> , <a for=Attr>value</a> is <var> value</var> , and
6514
- <a for=Node>node document</a> is <var> element</var> 's <a for=Node>node document</a> , then
6515
- <a lt="append an attribute">append</a> this <a>attribute</a> to <var> element</var> , and then
6516
- return.
6517
-
6518
- <ol>
6519
- <li><p> Set <var> attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
6520
- <var> namespace</var> , <a for=Attr>namespace prefix</a> is <var> prefix</var> ,
6521
- <a for=Attr>local name</a> is <var> localName</var> and <a for=Node>node document</a> is
6522
- <var> element</var> 's <a for=Node>node document</a> .
6511
+ <li>
6512
+ <p> If <var> attribute</var> is null, then:
6513
+ <ol>
6514
+ <li><p> Set <var> attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
6515
+ <var> namespace</var> , <a for=Attr>namespace prefix</a> is <var> prefix</var> ,
6516
+ <a for=Attr>local name</a> is <var> localName</var> and <a for=Node>node document</a> is
6517
+ <var> element</var> 's <a for=Node>node document</a> .
6523
6518
6524
- <li><p> <a>Validate and set attribute value</a> <var> value</var> for <var> attribute</var> with
6525
- <var> element</var> .
6519
+ <li><p> <a>Validate and set attribute value</a> <var> value</var> for <var> attribute</var> with
6520
+ <var> element</var> .
6526
6521
6527
- <li><p> <a lt="append an attribute">Append</a> <var> attribute</var> to <var> element</var> .
6522
+ <li><p> <a lt="append an attribute">Append</a> <var> attribute</var> to <var> element</var> .
6528
6523
6529
- <li><p> Return.
6530
- </ol>
6524
+ <li><p> Return.
6525
+ </ol>
6531
6526
6532
6527
<li><p> <a lt="change an attribute">Change</a> <var> attribute</var> to <var> value</var> .
6533
6528
</ol>
@@ -6790,20 +6785,21 @@ method steps are:
6790
6785
and null otherwise.
6791
6786
<!-- This is step 2 of "get an attribute by name", modified as appropriate -->
6792
6787
6793
- <li><p> If <var> attribute</var> is null, then:
6788
+ <li>
6789
+ <p> If <var> attribute</var> is null, then:
6794
6790
6795
- <ol>
6796
- <li><p> Set <var> attribute</var> to a new <a>attribute</a> whose <a for=Attr>local name</a> is
6797
- <var> qualifiedName</var> and <a for=Node>node document</a> is <a>this</a> 's
6798
- <a for=Node>node document</a> .
6791
+ <ol>
6792
+ <li><p> Set <var> attribute</var> to a new <a>attribute</a> whose <a for=Attr>local name</a> is
6793
+ <var> qualifiedName</var> and <a for=Node>node document</a> is <a>this</a> 's
6794
+ <a for=Node>node document</a> .
6799
6795
6800
- <li><p> <a>Validate and set attribute value</a> <var> value</var> for <var> attribute</var> ,
6801
- with <a>this</a> .
6796
+ <li><p> <a>Validate and set attribute value</a> <var> value</var> for <var> attribute</var> ,
6797
+ with <a>this</a> .
6802
6798
6803
- <li><p> <a lt="append an attribute">Append</a> <var> attribute</var> to <a>this</a> .
6799
+ <li><p> <a lt="append an attribute">Append</a> <var> attribute</var> to <a>this</a> .
6804
6800
6805
- <li><p> Return.
6806
- </ol>
6801
+ <li><p> Return.
6802
+ </ol>
6807
6803
6808
6804
<li><p> <a lt="change an attribute">Change</a> <var> attribute</var> to <var> value</var> .
6809
6805
</ol>
0 commit comments