Skip to content

Commit b047352

Browse files
committed
Update set an attribute to verify attribute value as first step
1 parent fdb686b commit b047352

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

dom.bs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6651,6 +6651,9 @@ string <var>namespace</var> (default null):</p>
66516651
<a for=/>attribute</a> <var>attr</var> and an <a for=/>element</a> <var>element</var>:
66526652

66536653
<ol>
6654+
<li><p>Let <var>verifiedValue</var> be the result of calling <a>verify attribute value</a>
6655+
<var>attr</var>'s <a for=Attr>value</a> for <var>attr</var>, with <var>element</var>.
6656+
66546657
<li><p>If <var>attr</var>'s <a for=Attr>element</a> is neither null nor <var>element</var>,
66556658
<a>throw</a> an "{{InUseAttributeError!!exception}}" {{DOMException}}.
66566659

@@ -6661,19 +6664,13 @@ string <var>namespace</var> (default null):</p>
66616664

66626665
<li><p>If <var>oldAttr</var> is <var>attr</var>, return <var>attr</var>.
66636666

6664-
<li><p>Let <var>verifiedValue</var> be the result of calling <a>verify attribute value</a>
6665-
<var>attr</var>'s <a for=Attr>value</a> for <var>attr</var>, with <var>element</var>.
6666-
6667-
<li><p>Set <var>attr</var>'s <a for=Attr>value</a> to <var>verifiedValue</var>.
6668-
6669-
<li><p>If <var>attr</var>'s <a for=Attr>element</a> is neither null nor <var>element</var>,
6670-
<a>throw</a> an "{{InUseAttributeError!!exception}}" {{DOMException}}.
6671-
66726667
<li><p>If <var>oldAttr</var> is non-null, then <a lt="replace an attribute">replace</a>
66736668
<var>oldAttr</var> with <var>attr</var>.
66746669

66756670
<li><p>Otherwise, <a lt="append an attribute">append</a> <var>attr</var> to <var>element</var>.
66766671

6672+
<li><p>Set <var>attr</var>'s <a for=Attr>value</a> to <var>verifiedValue</var>.
6673+
66776674
<li><p>Return <var>oldAttr</var>.
66786675
</ol>
66796676
</div>

0 commit comments

Comments
 (0)