Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Apr 22, 2024
1 parent d334b87 commit 1d42460
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4334,7 +4334,7 @@ do as defined below, switching on the interface <var>node</var> <a>implements</a
<dd><p><a>String replace all</a> with <var>value</var> within <var>node</var>.

<dt>{{Attr}}
<dd><p><a>Set an existing attribute value</a> with <var>node</var>, <var>value</var>.
<dd><p><a>Set an existing attribute value</a> with <var>node</var> and <var>value</var>.

<dt>{{CharacterData}}
<dd><p><a>Replace data</a> with node <var>node</var>, offset 0, count <var>node</var>'s
Expand Down Expand Up @@ -6376,7 +6376,7 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
<ol>
<li><p>Let <var>oldValue</var> be <var>attribute</var>'s <a for=Attr>value</a>.</p></li>

<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with
<li><p><a>Verify and set attribute value</a> <var>value</var> for <var>attribute</var>, with
<var>attribute</var>'s <a for=Attr>element</a>.

<li><p>If <var>attribute</var>'s <a for=Attr>element</a> <a lt="has an attribute">has</a>
Expand All @@ -6393,9 +6393,9 @@ boolean <var>validate</var> (default true), run these steps:

<ol>
<li>
<p>If <var>validate</var>, then:
<p>If <var>validate</var> is true, then:
<ol>
<li><p><a>Validate and set attribute value</a>
<li><p><a>Verify and set attribute value</a>
<var>attribute</var>'s <a for="Attr">value</a> for <var>attribute</var> with <var>element</var>.

<li><p>If <var>element</var> <a lt="has an attribute">has</a> an <a>attribute</a>
Expand Down Expand Up @@ -6430,7 +6430,7 @@ boolean <var>validate</var> (default true), run these steps:
<a>attribute</a> <var>oldAttr</var> with an <a>attribute</a> <var>newAttr</var>, run these steps:

<ol>
<li><p><a>Validate and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for
<li><p><a>Verify and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for
<var>newAttr</var> with <var>oldAttr</var>'s <a for=Attr>element</a>.

<li><p><a for=list>Replace</a> <var>oldAttr</var> by <var>newAttr</var> in <var>oldAttr</var>'s
Expand All @@ -6446,8 +6446,8 @@ boolean <var>validate</var> (default true), run these steps:
<a for=Attr>value</a>.
</ol>

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

<ol>
Expand Down Expand Up @@ -6507,7 +6507,7 @@ string <var>namespace</var> (default null):</p>

<div algorithm>
<p>To <dfn export id=concept-element-attributes-set>set an attribute</dfn> given an
<a for=/>attribute</a> <var>attr</var>, an <a for=/>element</a> <var>element</var>.
<a for=/>attribute</a> <var>attr</var> and an <a for=/>element</a> <var>element</var>:

<ol>
<li><p>If <var>attr</var>'s <a for=Attr>element</a> is neither null nor <var>element</var>,
Expand Down Expand Up @@ -6542,7 +6542,8 @@ or string <var>namespace</var> (default null):
<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.
<a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then
return.

<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>value</var>.
</ol>
Expand Down Expand Up @@ -7373,7 +7374,7 @@ null.
<p>The <dfn attribute for=Attr><code>value</code></dfn> getter steps are to return <a>this</a>'s
<a for=Attr>value</a>.

<p>To <dfn>set an existing attribute value</dfn>, given an <a>attribute</a> <var>attribute</var>,
<p>To <dfn>set an existing attribute value</dfn>, given an <a>attribute</a> <var>attribute</var> and
string <var>value</var>, run these steps:

<ol>
Expand All @@ -7383,8 +7384,8 @@ string <var>value</var>, run these steps:
<li><p>Otherwise, <a lt="change an attribute">change</a> <var>attribute</var> to <var>value</var>.
</ol>

<p>The {{Attr/value}} setter steps are to <a>set an existing attribute value</a> with <a>this</a>,
the given value, and "Attr value".
<p>The {{Attr/value}} setter steps are to <a>set an existing attribute value</a> with <a>this</a>
and the given value.

<hr>

Expand Down

0 comments on commit 1d42460

Please sign in to comment.