Skip to content

Commit

Permalink
Fix #171: Add Attr#nodeName as an alias for name
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Feb 22, 2016
1 parent a026ccf commit 90427aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5764,6 +5764,7 @@ interface Attr {
readonly attribute DOMString? prefix;
readonly attribute DOMString localName;
readonly attribute DOMString name;
readonly attribute DOMString nodeName; // historiacal alias of .name
attribute DOMString value;
[TreatNullAs=EmptyString] attribute DOMString nodeValue; // historical alias of .value
[TreatNullAs=EmptyString] attribute DOMString textContent; // historical alias of .value
Expand Down Expand Up @@ -5824,7 +5825,8 @@ null.
<p>The <dfn attribute for="Attr"><code>localName</code></dfn> attribute's getter must return the
<a for=Attr>local name</a>.

<p>The <dfn attribute for="Attr"><code>name</code></dfn> attribute's getter must return the
<p>The <dfn attribute for="Attr"><code>name</code></dfn> attribute's getter, and
<dfn attribute for="Attr"><code>nameName</code></dfn> attribute's getter, must return the
<a for=Attr>qualified name</a>.

<p>The <dfn attribute for="Attr"><code>value</code></dfn> attribute's getter,
Expand Down
14 changes: 11 additions & 3 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-02-20">20 February 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-02-22">22 February 2016</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>Participate:
Expand Down Expand Up @@ -3095,6 +3095,7 @@ <h4 class="heading settled" data-level="4.8.2" id="interface-attr"><span class="
readonly attribute DOMString? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString? " href="#dom-attr-prefix">prefix</a>;
readonly attribute DOMString <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString " href="#dom-attr-localname">localName</a>;
readonly attribute DOMString <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString " href="#dom-attr-name">name</a>;
readonly attribute DOMString <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" data-readonly="" data-type="DOMString " id="dom-attr-nodename">nodeName<a class="self-link" href="#dom-attr-nodename"></a></dfn>; // historiacal alias of .name
attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-value">value</a>;
[TreatNullAs=<a data-link-type="idl-name">EmptyString</a>] attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-nodevalue">nodeValue</a>; // historical alias of .value
[TreatNullAs=<a data-link-type="idl-name">EmptyString</a>] attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-textcontent">textContent</a>; // historical alias of .value
Expand All @@ -3118,7 +3119,7 @@ <h4 class="heading settled" data-level="4.8.2" id="interface-attr"><span class="
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-namespaceuri"><code>namespaceURI</code><a class="self-link" href="#dom-attr-namespaceuri"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#concept-attribute-namespace">namespace</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-prefix"><code>prefix</code><a class="self-link" href="#dom-attr-prefix"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#concept-attribute-namespace-prefix">namespace prefix</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-localname"><code>localName</code><a class="self-link" href="#dom-attr-localname"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#concept-attribute-local-name">local name</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-name"><code>name</code><a class="self-link" href="#dom-attr-name"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#concept-attribute-qualified-name">qualified name</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-name"><code>name</code><a class="self-link" href="#dom-attr-name"></a></dfn> attribute’s getter, and <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-namename"><code>nameName</code><a class="self-link" href="#dom-attr-namename"></a></dfn> attribute’s getter, must return the <a data-link-type="dfn" href="#concept-attribute-qualified-name">qualified name</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-value"><code>value</code><a class="self-link" href="#dom-attr-value"></a></dfn> attribute’s getter, <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-nodevalue"><code>nodeValue</code><a class="self-link" href="#dom-attr-nodevalue"></a></dfn> attribute’s getter, and <dfn class="idl-code" data-dfn-for="Attr" data-dfn-type="attribute" data-export="" id="dom-attr-textcontent"><code>textContent</code><a class="self-link" href="#dom-attr-textcontent"></a></dfn> attribute’s getter, must return the <a data-link-type="dfn" href="#concept-attribute-value">value</a>. </p>
<p>The <code class="idl"><a data-link-type="idl" href="#dom-attr-value">value</a></code> attribute’s setter, <code class="idl"><a data-link-type="idl" href="#dom-attr-nodevalue">nodeValue</a></code> attribute’s setter, and <code class="idl"><a data-link-type="idl" href="#dom-attr-textcontent">textContent</a></code> attribute’s setter, must run these steps: </p>
<ol>
Expand Down Expand Up @@ -5026,6 +5027,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
<li><a href="#dom-htmlcollection-nameditem">namedItem(name)</a><span>, in §4.2.7.2</span>
<li><a href="#namednodemap">NamedNodeMap</a><span>, in §4.8.1</span>
<li><a href="#namelist">NameList</a><span>, in §8.2</span>
<li><a href="#dom-attr-namename">nameName</a><span>, in §4.8.2</span>
<li>
namespace
<ul>
Expand Down Expand Up @@ -5066,7 +5068,12 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
<li><a href="#nodeiterator">NodeIterator</a><span>, in §6.1</span>
<li><a href="#nodeiterator-pre-removing-steps">NodeIterator pre-removing steps</a><span>, in §6.1</span>
<li><a href="#nodelist">NodeList</a><span>, in §4.2.7.1</span>
<li><a href="#dom-node-nodename">nodeName</a><span>, in §4.4</span>
<li>
nodeName
<ul>
<li><a href="#dom-node-nodename">attribute for Node</a><span>, in §4.4</span>
<li><a href="#dom-attr-nodename">attribute for Attr</a><span>, in §4.8.2</span>
</ul>
<li><a href="#concept-node">nodes</a><span>, in §4.2</span>
<li><a href="#concept-node-tree">node tree</a><span>, in §4.2</span>
<li><a href="#dom-node-nodetype">nodeType</a><span>, in §4.4</span>
Expand Down Expand Up @@ -5786,6 +5793,7 @@ <h2 class="no-num heading settled" id="idl-index"><span class="content">IDL Inde
readonly attribute DOMString? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString? " href="#dom-attr-prefix">prefix</a>;
readonly attribute DOMString <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString " href="#dom-attr-localname">localName</a>;
readonly attribute DOMString <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="DOMString " href="#dom-attr-name">name</a>;
readonly attribute DOMString <a data-readonly="" data-type="DOMString " href="#dom-attr-nodename">nodeName</a>; // historiacal alias of .name
attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-value">value</a>;
[TreatNullAs=<a data-link-type="idl-name">EmptyString</a>] attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-nodevalue">nodeValue</a>; // historical alias of .value
[TreatNullAs=<a data-link-type="idl-name">EmptyString</a>] attribute DOMString <a class="idl-code" data-link-type="attribute" data-type="DOMString " href="#dom-attr-textcontent">textContent</a>; // historical alias of .value
Expand Down

0 comments on commit 90427aa

Please sign in to comment.