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 Feb 26, 2024
1 parent acb802a commit 2495cb4
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 @@ -6413,8 +6413,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 @@ -6509,26 +6509,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 @@ -6791,20 +6786,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 2495cb4

Please sign in to comment.