Skip to content

Commit 1d42460

Browse files
committed
Address comment
1 parent d334b87 commit 1d42460

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

dom.bs

+13-12
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,7 @@ do as defined below, switching on the interface <var>node</var> <a>implements</a
43344334
<dd><p><a>String replace all</a> with <var>value</var> within <var>node</var>.
43354335

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

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

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

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

63946394
<ol>
63956395
<li>
6396-
<p>If <var>validate</var>, then:
6396+
<p>If <var>validate</var> is true, then:
63976397
<ol>
6398-
<li><p><a>Validate and set attribute value</a>
6398+
<li><p><a>Verify and set attribute value</a>
63996399
<var>attribute</var>'s <a for="Attr">value</a> for <var>attribute</var> with <var>element</var>.
64006400

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

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

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

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

64536453
<ol>
@@ -6507,7 +6507,7 @@ string <var>namespace</var> (default null):</p>
65076507

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

65126512
<ol>
65136513
<li><p>If <var>attr</var>'s <a for=Attr>element</a> is neither null nor <var>element</var>,
@@ -6542,7 +6542,8 @@ or string <var>namespace</var> (default null):
65426542
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
65436543
<a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is <var>value</var>, and
65446544
<a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>, then
6545-
<a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then return.
6545+
<a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then
6546+
return.
65466547

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

7376-
<p>To <dfn>set an existing attribute value</dfn>, given an <a>attribute</a> <var>attribute</var>,
7377+
<p>To <dfn>set an existing attribute value</dfn>, given an <a>attribute</a> <var>attribute</var> and
73777378
string <var>value</var>, run these steps:
73787379

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

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

73897390
<hr>
73907391

0 commit comments

Comments
 (0)