Skip to content

Commit 0e0516f

Browse files
committed
Address some comments
1 parent e3803db commit 0e0516f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

dom.bs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6409,24 +6409,25 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
64096409
<li><p><a>Verify and set attribute value</a> <var>value</var> for <var>attribute</var>, with
64106410
<var>attribute</var>'s <a for=Attr>element</a>.
64116411

6412-
<li><p>If <var>attribute</var>'s <a for=Attr>element</a> <a lt="has an attribute">has</a>
6413-
an <a>attribute</a> <var>attribute</var>, then <a>handle attribute changes</a> for
6412+
<li><p>If <var>attribute</var>'s <a for=Attr>element</a>
6413+
<a lt="has an attribute">has an attribute</a>, then <a>handle attribute changes</a> for
64146414
<var>attribute</var> with <var>attribute</var>'s <a for=Attr>element</a>, <var>oldValue</var>, and
64156415
<var>value</var>.
64166416

64176417
<li><p>Otherwise, throw an "{{InvalidStateError!!exception}}" {{DOMException}}.
64186418
</ol>
64196419

64206420
<p>To <dfn export id=concept-element-attributes-append lt="append an attribute">append</dfn> an
6421-
<a>attribute</a> <var>attribute</var> to an <a for=/>element</a> <var>element</var>, with optional
6422-
boolean <var>validate</var> (default true), run these steps:
6421+
<a>attribute</a> <var>attribute</var> to an <a for=/>element</a> <var>element</var>, with an
6422+
optional boolean <var>validate</var> (default true):
64236423

64246424
<ol>
64256425
<li>
6426-
<p>If <var>validate</var> is true, then:
6426+
<p>If <var>validate</var> is true:
6427+
64276428
<ol>
64286429
<li><p><a>Verify and set attribute value</a>
6429-
<var>attribute</var>'s <a for="Attr">value</a> for <var>attribute</var> with <var>element</var>.
6430+
<var>attribute</var>'s <a for="Attr">value</a> for <var>attribute</var>, with <var>element</var>.
64306431

64316432
<li><p>If <var>element</var> <a lt="has an attribute">has</a> an <a>attribute</a>
64326433
<var>attribute</var>, then throw an "{{InvalidStateError!!exception}}" {{DOMException}}.
@@ -6461,7 +6462,7 @@ boolean <var>validate</var> (default true), run these steps:
64616462

64626463
<ol>
64636464
<li><p><a>Verify and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for
6464-
<var>newAttr</var> with <var>oldAttr</var>'s <a for=Attr>element</a>.
6465+
<var>newAttr</var>, with <var>oldAttr</var>'s <a for=Attr>element</a>.
64656466

64666467
<li><p><a for=list>Replace</a> <var>oldAttr</var> by <var>newAttr</var> in <var>oldAttr</var>'s
64676468
<a for=Attr>element</a>'s <a for=Element>attribute list</a>.
@@ -6476,16 +6477,16 @@ boolean <var>validate</var> (default true), run these steps:
64766477
<a for=Attr>value</a>.
64776478
</ol>
64786479

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

64836484
<ol>
6484-
<li><p>Let <var>validValue</var> be the result of calling
6485+
<li><p>Let <var>verifiedValue</var> be the result of calling
64856486
<a abstract-op>get Trusted Types-compliant attribute value</a> for <var>attribute</var>, with
64866487
<var>element</var>, <var>value</var>. [[!TRUSTED-TYPES]]
64876488

6488-
<li><p>Set <var>attribute</var>'s <a for=Attr>value</a> to <var>validValue</var>.
6489+
<li><p>Set <var>attribute</var>'s <a for=Attr>value</a> to <var>verifiedValue</var>.
64896490
</ol>
64906491

64916492
<hr>

0 commit comments

Comments
 (0)