Skip to content

Commit 1156649

Browse files
committed
Removed stringification.
1 parent bf05e98 commit 1156649

File tree

1 file changed

+28
-31
lines changed

1 file changed

+28
-31
lines changed

dom.bs

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6355,13 +6355,9 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
63556355
<a>attribute</a> <var>attribute</var> to <var>value</var>, run these steps:
63566356

63576357
<ol>
6358-
<li><p>Set <var>value</var> to the result of calling <a>Get Trusted Types-compliant attribute
6359-
value</a> for <var>attribute</var>, with <var>attribute</var>'s <a for=Attr>element</a> and
6360-
<var>value</var>. [[!TRUSTED-TYPES]]
6361-
63626358
<li><p>Let <var>oldValue</var> be <var>attribute</var>'s <a for=Attr>value</a>.</p></li>
63636359

6364-
<li><p>Set <var>attribute</var>'s <a for=Attr>value</a> to <var>value</var>.
6360+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with <var>attribute</var>'s <a for=Attr>element</a>.
63656361

63666362
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>attribute</var>'s
63676363
<a for=Attr>element</a>, <var>oldValue</var>, and <var>value</var>.
@@ -6372,11 +6368,6 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
63726368
steps:
63736369

63746370
<ol>
6375-
<li><p>Set <var>attribute</var>'s
6376-
<a for=Attr>value</a> to the result of calling <a>Get Trusted Types-compliant attribute value</a>
6377-
for <var>attribute</var>, with <var>element</var> and <var>attribute</var>'s <a for=Attr>value</a>.
6378-
[[!TRUSTED-TYPES]]
6379-
63806371
<li><p><a for=list>Append</a> <var>attribute</var> to <var>element</var>'s
63816372
<a for=Element>attribute list</a>.
63826373

@@ -6405,11 +6396,6 @@ steps:
64056396
<a>attribute</a> <var>oldAttr</var> with an <a>attribute</a> <var>newAttr</var>, run these steps:
64066397

64076398
<ol>
6408-
<li><p>Set <var>newAttr</var>'s
6409-
<a for=Attr>value</a> to the result of calling <a>Get Trusted Types-compliant attribute value</a>
6410-
for <var>newAttr</var>, with <var>oldAttr</var>'s <a for=Attr>element</a> and <var>newAttr</var>'s
6411-
<a for=Attr>value</a>.[[!TRUSTED-TYPES]]
6412-
64136399
<li><p><a for=list>Replace</a> <var>oldAttr</var> by <var>newAttr</var> in <var>oldAttr</var>'s
64146400
<a for=Attr>element</a>'s <a for=Element>attribute list</a>.
64156401

@@ -6423,6 +6409,14 @@ steps:
64236409
<a for=Attr>value</a>.
64246410
</ol>
64256411

6412+
<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>element</a> <var>element</var>, run these steps:
6413+
6414+
<ol>
6415+
<li><p>Let <var>validValue</var> be the result of calling <a>Get Trusted Types-compliant attribute value</a>
6416+
for <var>attribute</var>, with <var>element</var> and <var>value</var>.[[!TRUSTED-TYPES]]
6417+
<li><p>Set <var>attribute</var>'s <a for=Attr>value</a> to <var>validValue</var>.
6418+
</ol>
6419+
64266420
<hr>
64276421

64286422
<div algorithm>
@@ -6485,6 +6479,8 @@ string <var>namespace</var> (default null):</p>
64856479

64866480
<li><p>If <var>oldAttr</var> is <var>attr</var>, return <var>attr</var>.
64876481

6482+
<li><p><a>Validate and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for <var>newAttr</var> with <var>element</var>.
6483+
64886484
<li><p>If <var>oldAttr</var> is non-null, then <a lt="replace an attribute">replace</a>
64896485
<var>oldAttr</var> with <var>attr</var>.
64906486

@@ -6505,26 +6501,23 @@ an optional null or string <var>prefix</var> (default null), and an optional nul
65056501
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
65066502
<var>namespace</var>, <var>localName</var>, and <var>element</var>.
65076503

6508-
<li><p>If <var>attribute</var> is null, then:
6504+
<li>If <var>attribute</var> is null, create an <a>attribute</a> whose <a for=Attr>namespace</a> is
6505+
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
6506+
<a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is <var>value</var>, and
6507+
<a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>, then
6508+
<a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then
6509+
return.
65096510

65106511
<ol>
65116512
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
65126513
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
65136514
<a for=Attr>local name</a> is <var>localName</var> and
65146515
<a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>.
65156516

6516-
<li><p>Set <a>attribute</a>'s <var>value</var> to the result of calling <a>Get Trusted Types-compliant attribute
6517-
value</a> for <var>attribute</var>, with <var>element</var> and
6518-
<var>value</var>. [[!TRUSTED-TYPES]]
6517+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with <var>element</var>.
65196518

6520-
<li><p><a for=list>Append</a> <var>attribute</var> to <var>element</var>'s
6521-
<a for=Element>attribute list</a>.
6522-
6523-
<li><p>Set <var>attribute</var>'s <a for=Attr>element</a> to <var>element</var>.
6524-
6525-
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>element</var>, null, and
6526-
<var>attribute</var>'s <a for=Attr>value</a>.
6527-
<li><p>Return.
6519+
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>
6520+
<li><p>Return.
65286521
</ol>
65296522

65306523
<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>value</var>.
@@ -6788,10 +6781,14 @@ method steps are:
67886781
and null otherwise.
67896782
<!-- This is step 2 of "get an attribute by name", modified as appropriate -->
67906783

6791-
<li><p>If <var>attribute</var> is null, create an <a>attribute</a> whose
6792-
<a for=Attr>local name</a> is <var>qualifiedName</var>, <a for=Attr>value</a> is
6793-
stringified <var>value</var>, and <a for=Node>node document</a> is <a>this</a>'s <a for=Node>node document</a>,
6794-
then <a lt="append an attribute">append</a> this <a>attribute</a> to <a>this</a>, and then return.
6784+
<li><p>If <var>attribute</var> is null, then:
6785+
<ol>
6786+
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose
6787+
<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>.
6788+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with <a>this</a>.
6789+
<li><a lt="append an attribute">Append</a> <var>attribute</var> to <a>this</a>.
6790+
<li><p>Return.
6791+
</ol>
67956792

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

0 commit comments

Comments
 (0)