Skip to content

Commit 2495cb4

Browse files
committed
Fixed copy-paste error in setAttribute() and indentation.
1 parent acb802a commit 2495cb4

File tree

1 file changed

+25
-29
lines changed

1 file changed

+25
-29
lines changed

dom.bs

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6413,8 +6413,8 @@ steps:
64136413
</ol>
64146414

64156415
<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>:
64186418

64196419
<ol>
64206420
<li><p>Let <var>validValue</var> be the result of calling
@@ -6509,26 +6509,21 @@ or string <var>namespace</var> (default null):
65096509
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
65106510
<var>namespace</var>, <var>localName</var>, and <var>element</var>.
65116511

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>.
65246519

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>.
65276522

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>.
65296524

6530-
<li><p>Return.
6531-
</ol>
6525+
<li><p>Return.
6526+
</ol>
65326527

65336528
<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>value</var>.
65346529
</ol>
@@ -6791,20 +6786,21 @@ method steps are:
67916786
and null otherwise.
67926787
<!-- This is step 2 of "get an attribute by name", modified as appropriate -->
67936788

6794-
<li><p>If <var>attribute</var> is null, then:
6789+
<li>
6790+
<p>If <var>attribute</var> is null, then:
67956791

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>.
68006796

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>.
68036799

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>.
68056801

6806-
<li><p>Return.
6807-
</ol>
6802+
<li><p>Return.
6803+
</ol>
68086804

68096805
<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>value</var>.
68106806
</ol>

0 commit comments

Comments
 (0)