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