Skip to content

Commit

Permalink
Restore Node.prototype.isSameNode()
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 14, 2016
1 parent 3cbbe89 commit 97f0a95
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
14 changes: 7 additions & 7 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2981,6 +2981,7 @@ interface Node : EventTarget {

[NewObject] Node cloneNode(optional boolean deep = false);
boolean isEqualNode(Node? otherNode);
boolean isSameNode(Node? otherNode); // historical alias of ===

const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
Expand Down Expand Up @@ -3633,11 +3634,12 @@ A <a>node</a> <var>A</var>
<a>index</a>.
</ul>

The
<dfn method for=Node>isEqualNode(<var>otherNode</var>)</dfn>
method must return true if <var>node</var> is not null and
<a>context object</a> <a for=Node>equals</a>
<var>otherNode</var>, and false otherwise.
<p>The <dfn method for=Node><code>isEqualNode(<var>otherNode</var>)</code></dfn> method, when
invoked, must return true if <var>otherNode</var> is non-null and <a>context object</a>
<a for=Node>equals</a> <var>otherNode</var>, and false otherwise.

<p>The <dfn method for=Node><code>isSameNode(<var>otherNode</var>)</code></dfn> method, when
invoked, must return true if <var>otherNode</var> is <a>context object</a>, and false otherwise.

</div>

Expand Down Expand Up @@ -8895,8 +8897,6 @@ Interface members:
<li><dfn method for=Node>getFeature()</dfn>
<li><dfn method for=Node>getUserData()</dfn>
<li><dfn method for=Node>setUserData()</dfn>

<li><dfn method for=Node>isSameNode()</dfn>
</ul>

<dt>{{Document}}
Expand Down
12 changes: 8 additions & 4 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-03-07">7 March 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-03-14">14 March 2016</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>Participate:
Expand Down Expand Up @@ -1765,6 +1765,7 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se

[NewObject] <a data-link-type="idl-name" href="#node">Node</a> <a class="idl-code" data-link-type="method" href="#dom-node-clonenode">cloneNode</a>(optional boolean <dfn class="idl-code" data-dfn-for="Node/cloneNode(deep), Node/cloneNode()" data-dfn-type="argument" data-export="" id="dom-node-clonenode-deep-deep">deep<a class="self-link" href="#dom-node-clonenode-deep-deep"></a></dfn> = false);
boolean <a class="idl-code" data-link-type="method" href="#dom-node-isequalnode">isEqualNode</a>(<a data-link-type="idl-name" href="#node">Node</a>? <dfn class="idl-code" data-dfn-for="Node/isEqualNode(otherNode)" data-dfn-type="argument" data-export="" id="dom-node-isequalnode-othernode-othernode">otherNode<a class="self-link" href="#dom-node-isequalnode-othernode-othernode"></a></dfn>);
boolean <a class="idl-code" data-link-type="method" href="#dom-node-issamenode">isSameNode</a>(<a data-link-type="idl-name" href="#node">Node</a>? <dfn class="idl-code" data-dfn-for="Node/isSameNode(otherNode)" data-dfn-type="argument" data-export="" id="dom-node-issamenode-othernode-othernode">otherNode<a class="self-link" href="#dom-node-issamenode-othernode-othernode"></a></dfn>); // historical alias of ===

const unsigned short <a class="idl-code" data-link-type="const" href="#dom-node-document_position_disconnected">DOCUMENT_POSITION_DISCONNECTED</a> = 0x01;
const unsigned short <a class="idl-code" data-link-type="const" href="#dom-node-document_position_preceding">DOCUMENT_POSITION_PRECEDING</a> = 0x02;
Expand Down Expand Up @@ -2085,7 +2086,10 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se
<li><var>A</var> and <var>B</var> have the same number of <a data-link-type="dfn" href="#concept-tree-child">children</a>.
<li>Each <a data-link-type="dfn" href="#concept-tree-child">child</a> of <var>A</var> <a data-link-type="dfn" href="#concept-node-equals">equals</a> the <a data-link-type="dfn" href="#concept-tree-child">child</a> of <var>B</var> at the identical <a data-link-type="dfn" href="#concept-tree-index">index</a>.
</ul>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-isequalnode">isEqualNode(<var>otherNode</var>)<a class="self-link" href="#dom-node-isequalnode"></a></dfn> method must return true if <var>node</var> is not null and <a data-link-type="dfn" href="#context-object">context object</a> <a data-link-type="dfn" href="#concept-node-equals">equals</a> <var>otherNode</var>, and false otherwise.</p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-isequalnode"><code>isEqualNode(<var>otherNode</var>)</code><a class="self-link" href="#dom-node-isequalnode"></a></dfn> method, when
invoked, must return true if <var>otherNode</var> is non-null and <a data-link-type="dfn" href="#context-object">context object</a> <a data-link-type="dfn" href="#concept-node-equals">equals</a> <var>otherNode</var>, and false otherwise. </p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-issamenode"><code>isSameNode(<var>otherNode</var>)</code><a class="self-link" href="#dom-node-issamenode"></a></dfn> method, when
invoked, must return true if <var>otherNode</var> is <a data-link-type="dfn" href="#context-object">context object</a>, and false otherwise. </p>
</div>
<hr>
<dl class="domintro">
Expand Down Expand Up @@ -4431,7 +4435,6 @@ <h3 class="heading settled" data-level="8.2" id="dom-core-changes"><span class="
<li><dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-getfeature">getFeature()<a class="self-link" href="#dom-node-getfeature"></a></dfn>
<li><dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-getuserdata">getUserData()<a class="self-link" href="#dom-node-getuserdata"></a></dfn>
<li><dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-setuserdata">setUserData()<a class="self-link" href="#dom-node-setuserdata"></a></dfn>
<li><dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-issamenode">isSameNode()<a class="self-link" href="#dom-node-issamenode"></a></dfn>
</ul>
<dt><code class="idl"><a data-link-type="idl" href="#document">Document</a></code>
<dd>
Expand Down Expand Up @@ -4983,7 +4986,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
<li><a href="#dom-text-iselementcontentwhitespace">isElementContentWhitespace</a><span>, in §8.2</span>
<li><a href="#dom-node-isequalnode">isEqualNode(otherNode)</a><span>, in §4.4</span>
<li><a href="#dom-range-ispointinrange">isPointInRange(node, offset)</a><span>, in §5.2</span>
<li><a href="#dom-node-issamenode">isSameNode()</a><span>, in §8.2</span>
<li><a href="#dom-node-issamenode">isSameNode(otherNode)</a><span>, in §4.4</span>
<li><a href="#dom-node-issupported">isSupported</a><span>, in §8.2</span>
<li><a href="#dom-event-istrusted">isTrusted</a><span>, in §3.2</span>
<li>
Expand Down Expand Up @@ -5683,6 +5686,7 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I

[NewObject] <a data-link-type="idl-name" href="#node">Node</a> <a class="idl-code" data-link-type="method" href="#dom-node-clonenode">cloneNode</a>(optional boolean <a href="#dom-node-clonenode-deep-deep">deep</a> = false);
boolean <a class="idl-code" data-link-type="method" href="#dom-node-isequalnode">isEqualNode</a>(<a data-link-type="idl-name" href="#node">Node</a>? <a href="#dom-node-isequalnode-othernode-othernode">otherNode</a>);
boolean <a class="idl-code" data-link-type="method" href="#dom-node-issamenode">isSameNode</a>(<a data-link-type="idl-name" href="#node">Node</a>? <a href="#dom-node-issamenode-othernode-othernode">otherNode</a>); // historical alias of ===

const unsigned short <a class="idl-code" data-link-type="const" href="#dom-node-document_position_disconnected">DOCUMENT_POSITION_DISCONNECTED</a> = 0x01;
const unsigned short <a class="idl-code" data-link-type="const" href="#dom-node-document_position_preceding">DOCUMENT_POSITION_PRECEDING</a> = 0x02;
Expand Down

0 comments on commit 97f0a95

Please sign in to comment.