Skip to content

Commit

Permalink
Fix w3c#35: bring the legacy .nodeName for interface Attr.
Browse files Browse the repository at this point in the history
Changes in Attr.
.nodeName is still being used. It's an alias of .name attribute.
  • Loading branch information
Yongsheng Zhu committed Feb 17, 2017
1 parent eb81901 commit d6ac4a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sections/nodes.include
Original file line number Diff line number Diff line change
Expand Up @@ -2388,6 +2388,7 @@ interface Attr {
readonly attribute DOMString? prefix;
readonly attribute DOMString localName;
readonly attribute DOMString name;
readonly attribute DOMString nodeName; // for legacy use, alias of .name
attribute DOMString value;

readonly attribute boolean specified; // useless; always returns true
Expand All @@ -2410,7 +2411,7 @@ interface Attr {

<p>The <dfn id="attr-localname" for="attr"><code>localName</code></dfn> attribute must return the <a href="#attribute-local-name">local name</a>.

<p>The <dfn id="attr-name" for="attr"><code>name</code></dfn> attribute's getter must return the <a href="#attribute-name">name</a>.
<p>The <dfn id="attr-name" for="attr"><code>name</code></dfn> attribute's getter and <dfn id="attr-nodename" for="attr"><code>nodeName</code></dfn> attribute's getter must return the <a href="#attribute-name">name</a>.

<p>The <dfn id="attr-value" for="attr"><code>value</code></dfn> attribute's getter and <dfn id="attr-textcontent" for="attr"><code>textContent</code></dfn> attribute's getter must both return the <a href="#attribute-value">value</a>.

Expand Down

0 comments on commit d6ac4a2

Please sign in to comment.