Skip to content

Commit

Permalink
Fixed copy-paste error in setAttribute() and indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
koto committed Jan 25, 2024
1 parent 504abff commit 455d8e7
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6412,8 +6412,8 @@ steps:
</ol>

<p>To <dfn id=concept-element-attributes-validate-and-set-value>validate and set attribute value</dfn>
<var>value</var> for an <a>attribute</a> <var>attribute</var>, with <a for=/>element</a>
<var>element</var>, run these steps:
{{TrustedType}} or a string <var>value</var> for an <a>attribute</a> <var>attribute</var>, with
<a for=/>element</a> <var>element</var>:

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

<li>If <var>attribute</var> is null, create an <a>attribute</a> whose <a for=Attr>namespace</a> is
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
<a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is <var>value</var>, and
<a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>, then
<a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then
return.

<ol>
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
<a for=Attr>local name</a> is <var>localName</var> and <a for=Node>node document</a> is
<var>element</var>'s <a for=Node>node document</a>.
<li>
<p>If <var>attribute</var> is null, then:
<ol>
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
<a for=Attr>local name</a> is <var>localName</var> and <a for=Node>node document</a> is
<var>element</var>'s <a for=Node>node document</a>.

<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with
<var>element</var>.
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with
<var>element</var>.

<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>.
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>.

<li><p>Return.
</ol>
<li><p>Return.
</ol>

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

<li><p>If <var>attribute</var> is null, then:
<li>
<p>If <var>attribute</var> is null, then:

<ol>
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>local name</a> is
<var>qualifiedName</var> and <a for=Node>node document</a> is <a>this</a>'s
<a for=Node>node document</a>.
<ol>
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>local name</a> is
<var>qualifiedName</var> and <a for=Node>node document</a> is <a>this</a>'s
<a for=Node>node document</a>.

<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>,
with <a>this</a>.
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>,
with <a>this</a>.

<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <a>this</a>.
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <a>this</a>.

<li><p>Return.
</ol>
<li><p>Return.
</ol>

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

0 comments on commit 455d8e7

Please sign in to comment.