Skip to content

Commit

Permalink
Make the DOMTokenList creation steps use "get an attribute value"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TRowbotham authored and annevk committed Aug 8, 2018
1 parent 32efc48 commit 28cdb47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -9525,8 +9525,8 @@ are to return the result of running <a>get an attribute value</a> given the asso
<li><p>Let <var>localName</var> be associated attribute's <a for=Attr>local name</a>.

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

<li><p>Run the <a>attribute change steps</a> for <var>element</var>, <var>localName</var>,
<var>value</var>, <var>value</var>, and null.
Expand Down Expand Up @@ -10026,6 +10026,7 @@ Timo Tijhof,
Tobie Langel,
Tom Pixley,
Travis Leithead,
Trevor Rowbotham,
<i>triple-underscore</i>,<!--GitHub-->
Veli Şenol,
Vidur Apparao,
Expand Down

0 comments on commit 28cdb47

Please sign in to comment.