Skip to content

Commit 455d8e7

Browse files
committed
Fixed copy-paste error in setAttribute() and indentation.
1 parent 504abff commit 455d8e7

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
@@ -6412,8 +6412,8 @@ steps:
64126412
</ol>
64136413

64146414
<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>:
64176417

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

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

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

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

6529-
<li><p>Return.
6530-
</ol>
6524+
<li><p>Return.
6525+
</ol>
65316526

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

6793-
<li><p>If <var>attribute</var> is null, then:
6788+
<li>
6789+
<p>If <var>attribute</var> is null, then:
67946790

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

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

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

6805-
<li><p>Return.
6806-
</ol>
6801+
<li><p>Return.
6802+
</ol>
68076803

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

0 commit comments

Comments
 (0)