Skip to content

Commit 28cdb47

Browse files
TRowbothamannevk
authored andcommitted
Make the DOMTokenList creation steps use "get an attribute value"
This makes it so that if a DOMTokenList's associated element has an attribute that is the associated attribute's local name, at creation time, it will use the "get an attribute value" steps, which will always return a string. Previously, the this used the "get an attribute by namespace and local name" steps, which would return an Attr node if the associated element had an attribute that is the associated attribute's local name. Fixes #666.
1 parent 32efc48 commit 28cdb47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dom.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9525,8 +9525,8 @@ are to return the result of running <a>get an attribute value</a> given the asso
95259525
<li><p>Let <var>localName</var> be associated attribute's <a for=Attr>local name</a>.
95269526

95279527
<li><p>Let <var>value</var> be the result of
9528-
<a lt="get an attribute by namespace and local name">getting an attribute</a> given null,
9529-
<var>localName</var>, and <var>element</var>.
9528+
<a lt="get an attribute value">getting an attribute value</a> given <var>element</var> and
9529+
<var>localName</var>.
95309530

95319531
<li><p>Run the <a>attribute change steps</a> for <var>element</var>, <var>localName</var>,
95329532
<var>value</var>, <var>value</var>, and null.
@@ -10026,6 +10026,7 @@ Timo Tijhof,
1002610026
Tobie Langel,
1002710027
Tom Pixley,
1002810028
Travis Leithead,
10029+
Trevor Rowbotham,
1002910030
<i>triple-underscore</i>,<!--GitHub-->
1003010031
Veli Şenol,
1003110032
Vidur Apparao,

0 commit comments

Comments
 (0)