Skip to content

Commit

Permalink
Remove Node.prototype.rootNode
Browse files Browse the repository at this point in the history
This reverts 0316b62 as rootNode was
already used as a name by web developers and we could not agree on an
alternative web-compatible name.

Fixes #241.
  • Loading branch information
annevk committed Jun 7, 2016
1 parent 754bb8d commit 42a45eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
7 changes: 0 additions & 7 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,6 @@ interface Node : EventTarget {

readonly attribute boolean isConnected;
readonly attribute Document? ownerDocument;
readonly attribute Node rootNode;
readonly attribute Node? parentNode;
readonly attribute Element? parentElement;
boolean hasChildNodes();
Expand Down Expand Up @@ -3626,9 +3625,6 @@ The <dfn attribute for=Node><code>baseURI</code></dfn> attribute's getter must r
Returns the <a>node document</a>.
Returns null for <a>documents</a>.

<dt><code><var>node</var> . {{Node/rootNode}}</code>
<dd>Returns the <a for=tree>root</a>.

<dt><code><var>node</var> . {{Node/parentNode}}</code>
<dd>Returns the <a>parent</a>.

Expand Down Expand Up @@ -3667,9 +3663,6 @@ if the <a>context object</a> is a <a>document</a>, and the <a>context object</a>
<p class="note">The <a>node document</a> of a <a>document</a> is that <a>document</a> itself. All
<a>nodes</a> have a <a>node document</a> at all times.

<p>The <dfn attribute for=Node><code>rootNode</code></dfn> attribute's getter must return
<a>context object</a>'s <a for=tree>root</a>.

<p>The <dfn attribute for=Node><code>parentNode</code></dfn> attribute's getter must return the
<a>context object</a>'s <a>parent</a>.
<!-- AttrExodus
Expand Down
10 changes: 2 additions & 8 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
<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>
<hgroup>
<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-06-03">3 June 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-06-07">7 June 2016</time></span></h2>
</hgroup>
<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -2214,7 +2214,6 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se

readonly attribute boolean <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="boolean" href="#dom-node-isconnected">isConnected</a>;
readonly attribute <a data-link-type="idl-name" href="#document">Document</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Document?" href="#dom-node-ownerdocument">ownerDocument</a>;
readonly attribute <a data-link-type="idl-name" href="#node">Node</a> <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Node" href="#dom-node-rootnode">rootNode</a>;
readonly attribute <a data-link-type="idl-name" href="#node">Node</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Node?" href="#dom-node-parentnode">parentNode</a>;
readonly attribute <a data-link-type="idl-name" href="#element">Element</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Element?" href="#dom-node-parentelement">parentElement</a>;
boolean <a class="idl-code" data-link-type="method" href="#dom-node-haschildnodes">hasChildNodes</a>();
Expand Down Expand Up @@ -2353,8 +2352,6 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-ownerdocument">ownerDocument</a></code></code>
<dd> Returns the <a data-link-type="dfn" href="#concept-node-document">node document</a>.
Returns null for <a data-link-type="dfn" href="#concept-document">documents</a>.
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-rootnode">rootNode</a></code></code>
<dd>Returns the <a data-link-type="dfn" href="#concept-tree-root">root</a>.
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-parentnode">parentNode</a></code></code>
<dd>Returns the <a data-link-type="dfn" href="#concept-tree-parent">parent</a>.
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-parentelement">parentElement</a></code></code>
Expand All @@ -2377,7 +2374,6 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-ownerdocument"><code>ownerDocument</code><a class="self-link" href="#dom-node-ownerdocument"></a></dfn> attribute’s getter must return null,
if the <a data-link-type="dfn" href="#context-object">context object</a> is a <a data-link-type="dfn" href="#concept-document">document</a>, and the <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="#concept-node-document">node document</a> otherwise. </p>
<p class="note" role="note">The <a data-link-type="dfn" href="#concept-node-document">node document</a> of a <a data-link-type="dfn" href="#concept-document">document</a> is that <a data-link-type="dfn" href="#concept-document">document</a> itself. All <a data-link-type="dfn" href="#concept-node">nodes</a> have a <a data-link-type="dfn" href="#concept-node-document">node document</a> at all times. </p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-rootnode"><code>rootNode</code><a class="self-link" href="#dom-node-rootnode"></a></dfn> attribute’s getter must return <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="#concept-tree-root">root</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-parentnode"><code>parentNode</code><a class="self-link" href="#dom-node-parentnode"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="#concept-tree-parent">parent</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-parentelement"><code>parentElement</code><a class="self-link" href="#dom-node-parentelement"></a></dfn> attribute’s getter must return the <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="#parent-element">parent element</a>. </p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="method" data-export="" id="dom-node-haschildnodes"><code>hasChildNodes()</code><a class="self-link" href="#dom-node-haschildnodes"></a></dfn> method, when invoked, must return
Expand Down Expand Up @@ -6224,7 +6220,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
<li><a href="#dom-nodeiterator-root">attribute for NodeIterator</a><span>, in §6.1</span>
<li><a href="#dom-treewalker-root">attribute for TreeWalker</a><span>, in §6.2</span>
</ul>
<li><a href="#dom-node-rootnode">rootNode</a><span>, in §4.4</span>
<li><a href="#dom-element-schematypeinfo">schemaTypeInfo</a><span>, in §8.2</span>
<li><a href="#scope-match-a-selectors-string">scope-match a selectors string</a><span>, in §2.4</span>
<li><a href="#concept-range-select">select</a><span>, in §5.2</span>
Expand Down Expand Up @@ -6324,8 +6319,8 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
<li><a href="#dom-domtokenlist-supports">supports(token)</a><span>, in §7.1</span>
<li><a href="#dom-range-surroundcontents">surroundContents(newParent)</a><span>, in §5.2</span>
<li><a href="#svg-namespace">SVG namespace</a><span>, in §2.5</span>
<li><a href="#concept-doctype-systemid">system ID</a><span>, in §4.6</span>
<li><a href="#dom-documenttype-systemid">systemId</a><span>, in §4.6</span>
<li><a href="#concept-doctype-systemid">system ID</a><span>, in §4.6</span>
<li><a href="#dom-element-tagname">tagName</a><span>, in §4.9</span>
<li><a href="#dom-mutationobserver-takerecords">takeRecords()</a><span>, in §4.3.1</span>
<li>
Expand Down Expand Up @@ -6766,7 +6761,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I

readonly attribute boolean <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="boolean" href="#dom-node-isconnected">isConnected</a>;
readonly attribute <a data-link-type="idl-name" href="#document">Document</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Document?" href="#dom-node-ownerdocument">ownerDocument</a>;
readonly attribute <a data-link-type="idl-name" href="#node">Node</a> <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Node" href="#dom-node-rootnode">rootNode</a>;
readonly attribute <a data-link-type="idl-name" href="#node">Node</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Node?" href="#dom-node-parentnode">parentNode</a>;
readonly attribute <a data-link-type="idl-name" href="#element">Element</a>? <a class="idl-code" data-link-type="attribute" data-readonly="" data-type="Element?" href="#dom-node-parentelement">parentElement</a>;
boolean <a class="idl-code" data-link-type="method" href="#dom-node-haschildnodes">hasChildNodes</a>();
Expand Down

0 comments on commit 42a45eb

Please sign in to comment.