Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the NonDocumentTypeChildNode mixin #2394

Merged
merged 11 commits into from
Feb 16, 2021
35 changes: 18 additions & 17 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@
/en-US/docs/DOM/Element.lastElementChild /en-US/docs/Web/API/ParentNode/lastElementChild
/en-US/docs/DOM/Element.mozMatchesSelector /en-US/docs/Web/API/Element/matches
/en-US/docs/DOM/Element.mozRequestFullScreen /en-US/docs/Web/API/Element/requestFullScreen
/en-US/docs/DOM/Element.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/DOM/Element.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/DOM/Element.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/DOM/Element.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/DOM/Element.querySelector /en-US/docs/Web/API/Element/querySelector
/en-US/docs/DOM/Element.querySelectorAll /en-US/docs/Web/API/Element/querySelectorAll
/en-US/docs/DOM/Event/CustomEvent /en-US/docs/Web/API/CustomEvent
Expand Down Expand Up @@ -2975,8 +2975,8 @@
/en-US/docs/Document_Object_Model_(DOM)/Element.lastElementChild /en-US/docs/Web/API/ParentNode/lastElementChild
/en-US/docs/Document_Object_Model_(DOM)/Element.mozMatchesSelector /en-US/docs/Web/API/Element/matches
/en-US/docs/Document_Object_Model_(DOM)/Element.mozRequestFullScreen /en-US/docs/Web/API/Element/requestFullScreen
/en-US/docs/Document_Object_Model_(DOM)/Element.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Document_Object_Model_(DOM)/Element.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Document_Object_Model_(DOM)/Element.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Document_Object_Model_(DOM)/Element.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Document_Object_Model_(DOM)/Element.querySelector /en-US/docs/Web/API/Element/querySelector
/en-US/docs/Document_Object_Model_(DOM)/Element.querySelectorAll /en-US/docs/Web/API/Element/querySelectorAll
/en-US/docs/Document_Object_Model_(DOM)/File /en-US/docs/Web/API/File
Expand Down Expand Up @@ -7367,13 +7367,13 @@
/en-US/docs/Web/API/CanvasRenderingContext2D/mozImageSmoothingEnabled /en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled
/en-US/docs/Web/API/CanvasRenderingContext2D/mozTextStyle /en-US/docs/Web/API/CanvasRenderingContext2D/font
/en-US/docs/Web/API/Canvas_API/Drawing_graphics_with_canvas /en-US/docs/Web/API/Canvas_API/Tutorial
/en-US/docs/Web/API/CharacterData.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/CharacterData/nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/CharacterData/previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/CharacterData.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/CharacterData/nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/CharacterData/previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/CharacterData/remove /en-US/docs/Web/API/ChildNode/remove
/en-US/docs/Web/API/ChildNode.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/ChildNode.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/ChildNode.remove /en-US/docs/Web/API/ChildNode/remove
/en-US/docs/Web/API/Childnode.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/Childnode.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/Client/focus /en-US/docs/Web/API/WindowClient/focus
/en-US/docs/Web/API/Client/focused /en-US/docs/Web/API/WindowClient/focused
/en-US/docs/Web/API/Client/visibilityState /en-US/docs/Web/API/WindowClient/visibilityState
Expand Down Expand Up @@ -7601,10 +7601,10 @@
/en-US/docs/Web/API/Element.matrches /en-US/docs/Web/API/Element/matches
/en-US/docs/Web/API/Element.mozMatchesSelector /en-US/docs/Web/API/Element/matches
/en-US/docs/Web/API/Element.mozRequestFullScreen /en-US/docs/Web/API/Element/requestFullScreen
/en-US/docs/Web/API/Element.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/Element.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/Element.offsetTop /en-US/docs/Web/API/HTMLElement/offsetTop
/en-US/docs/Web/API/Element.onmouseover /en-US/docs/Web/API/GlobalEventHandlers/onmouseover
/en-US/docs/Web/API/Element.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/Element.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/Element.querySelector /en-US/docs/Web/API/Element/querySelector
/en-US/docs/Web/API/Element.querySelectorAll /en-US/docs/Web/API/Element/querySelectorAll
/en-US/docs/Web/API/Element.requestFullScreen /en-US/docs/Web/API/Element/requestFullScreen
Expand Down Expand Up @@ -7634,7 +7634,6 @@
/en-US/docs/Web/API/Element/mozRequestFullScreen /en-US/docs/Web/API/Element/requestFullScreen
/en-US/docs/Web/API/Element/msMatchesSelector /en-US/docs/Web/API/Element/matches
/en-US/docs/Web/API/Element/name /en-US/docs/Web/API
/en-US/docs/Web/API/Element/nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/Element/ongotpointercapture /en-US/docs/Web/API/GlobalEventHandlers/ongotpointercapture
/en-US/docs/Web/API/Element/onlostpointercapture /en-US/docs/Web/API/GlobalEventHandlers/onlostpointercapture
/en-US/docs/Web/API/Element/onwheel /en-US/docs/Web/API/GlobalEventHandlers/onwheel
Expand All @@ -7647,14 +7646,13 @@
/en-US/docs/Web/API/Element/pointerout_event /en-US/docs/Web/API/HTMLElement/pointerout_event
/en-US/docs/Web/API/Element/pointerover_event /en-US/docs/Web/API/HTMLElement/pointerover_event
/en-US/docs/Web/API/Element/pointerup_event /en-US/docs/Web/API/HTMLElement/pointerup_event
/en-US/docs/Web/API/Element/previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/Element/remove /en-US/docs/Web/API/ChildNode/remove
/en-US/docs/Web/API/Element/resourcetimingbufferfull_event /en-US/docs/Web/API/Performance/resourcetimingbufferfull_event
/en-US/docs/Web/API/ElementTraversal.childElementCount /en-US/docs/Web/API/ParentNode/childElementCount
/en-US/docs/Web/API/ElementTraversal.firstElementChild /en-US/docs/Web/API/ParentNode/firstElementChild
/en-US/docs/Web/API/ElementTraversal.lastElementChild /en-US/docs/Web/API/ParentNode/lastElementChild
/en-US/docs/Web/API/ElementTraversal.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/ElementTraversal.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/ElementTraversal.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/ElementTraversal.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/EncryptedMediaExtensions /en-US/docs/Web/API/Encrypted_Media_Extensions_API
/en-US/docs/Web/API/EncryptedMediaExtensions_API /en-US/docs/Web/API/Encrypted_Media_Extensions_API
/en-US/docs/Web/API/Entry /en-US/docs/Web/API/FileSystemEntry
Expand Down Expand Up @@ -8409,8 +8407,11 @@
/en-US/docs/Web/API/NodeIterator.whatToShow /en-US/docs/Web/API/NodeIterator/whatToShow
/en-US/docs/Web/API/NodeList.item /en-US/docs/Web/API/NodeList/item
/en-US/docs/Web/API/NodeList.length /en-US/docs/Web/API/NodeList/length
/en-US/docs/Web/API/NonDocumentTypeChildNode.nextElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
/en-US/docs/Web/API/NonDocumentTypeChildNode.previousElementSibling /en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling
/en-US/docs/Web/API/NonDocumentTypeChildNode /en-US/docs/Web/API/Element
/en-US/docs/Web/API/NonDocumentTypeChildNode.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/NonDocumentTypeChildNode.previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling /en-US/docs/Web/API/Element/previousElementSibling
/en-US/docs/Web/API/Notification.body /en-US/docs/Web/API/Notification/body
/en-US/docs/Web/API/Notification.close /en-US/docs/Web/API/Notification/close
/en-US/docs/Web/API/Notification.dir /en-US/docs/Web/API/Notification/dir
Expand Down
91 changes: 41 additions & 50 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -69972,55 +69972,6 @@
"teoli"
]
},
"Web/API/NonDocumentTypeChildNode": {
"modified": "2020-10-15T21:29:39.756Z",
"contributors": [
"sideshowbarker",
"mfluehr",
"fscholz",
"teoli"
]
},
"Web/API/NonDocumentTypeChildNode/nextElementSibling": {
"modified": "2020-10-15T21:05:52.064Z",
"contributors": [
"Krinkle",
"fscholz",
"freginold",
"jszhou",
"RobBelics",
"birjolaxew",
"Alhadis",
"teoli",
"awalGarg",
"tregagnon",
"Sheppy",
"ziyunfei",
"GavinSharp",
"Jürgen Jeka"
]
},
"Web/API/NonDocumentTypeChildNode/previousElementSibling": {
"modified": "2020-10-15T21:05:48.149Z",
"contributors": [
"mfluehr",
"sideshowbarker",
"fscholz",
"varEnigmatic",
"jszhou",
"Alhadis",
"kscarfone",
"teoli",
"tregagnon",
"ethertank",
"Sheppy",
"moshkin",
"ziyunfei",
"BillyRayPreachersSon",
"JohnST",
"Jürgen Jeka"
]
},
"Web/API/Notation": {
"modified": "2020-10-15T21:14:44.239Z",
"contributors": [
Expand Down Expand Up @@ -165867,6 +165818,46 @@
"sideshowbarker"
]
},
"Web/API/Element/previousElementSibling": {
"modified": "2020-10-15T21:05:48.149Z",
"contributors": [
"mfluehr",
"sideshowbarker",
"fscholz",
"varEnigmatic",
"jszhou",
"Alhadis",
"kscarfone",
"teoli",
"tregagnon",
"ethertank",
"Sheppy",
"moshkin",
"ziyunfei",
"BillyRayPreachersSon",
"JohnST",
"Jürgen Jeka"
]
},
"Web/API/Element/nextElementSibling": {
"modified": "2020-10-15T21:05:52.064Z",
"contributors": [
"Krinkle",
"fscholz",
"freginold",
"jszhou",
"RobBelics",
"birjolaxew",
"Alhadis",
"teoli",
"awalGarg",
"tregagnon",
"Sheppy",
"ziyunfei",
"GavinSharp",
"Jürgen Jeka"
]
},
"Web/API/Document/activeElement": {
"modified": "2020-10-15T21:49:26.859Z",
"contributors": [
Expand All @@ -165886,4 +165877,4 @@
"david_ross"
]
}
}
}
12 changes: 5 additions & 7 deletions files/en-us/web/api/characterdata/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@
---
<p>{{APIRef("DOM")}}</p>

<p>The <code><strong>CharacterData</strong></code> abstract interface represents a {{domxref("Node")}} object that contains characters. This is an abstract interface, meaning there aren't any object of type <code>CharacterData</code>: it is implemented by other interfaces, like {{domxref("Text")}}, {{domxref("Comment")}}, or {{domxref("ProcessingInstruction")}} which aren't abstract.</p>
<p>The <code><strong>CharacterData</strong></code> abstract interface represents a {{domxref("Node")}} object that contains characters. This is an abstract interface, meaning there aren't any objects of type <code>CharacterData</code>: it is implemented by other interfaces like {{domxref("Text")}}, {{domxref("Comment")}}, or {{domxref("ProcessingInstruction")}}, which aren't abstract.</p>

<p>{{InheritanceDiagram}}</p>

<h2 id="Properties">Properties</h2>

<p><em>Inherits properties from its parent, {{domxref("Node")}}, and implements the {{domxref("ChildNode")}} and {{domxref("NonDocumentTypeChildNode")}} interface.</em></p>
<p><em><code>CharacterData</code> inherits properties from its parent, {{domxref("Node")}}.</em></p>

<dl>
<dt>{{domxref("CharacterData.data")}}</dt>
<dd>Is a {{domxref("DOMString")}} representing the textual data contained in this object.</dd>
<dt>{{domxref("CharacterData.length")}} {{readonlyInline}}</dt>
<dd>Returns an <code>unsigned long</code> representing the size of the string contained in <code>CharacterData.data</code>.</dd>
<dt>{{domxref("NonDocumentTypeChildNode.nextElementSibling")}} {{readonlyInline}}</dt>
<dt>{{domxref("CharacterData.nextElementSibling")}} {{readonlyInline}}</dt>
<dd>Returns the {{domxref("Element")}} immediately following the specified one in its parent's children list, or <code>null</code> if the specified element is the last one in the list.</dd>
<dt>{{domxref("NonDocumentTypeChildNode.previousElementSibling")}} {{readonlyInline}}</dt>
<dt>{{domxref("CharacterData.previousElementSibling")}} {{readonlyInline}}</dt>
<dd>Returns the {{domxref("Element")}} immediately prior to the specified one in its parent's children list, or <code>null</code> if the specified element is the first one in the list.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em>Inherits methods from its parent, {{domxref("Node")}}, and implements the {{domxref("ChildNode")}} and {{domxref("NonDocumentTypeChildNode")}} interface.</em></p>
<p><em><code>CharacterData</code> inherits methods from its parent, {{domxref("Node")}}.</em></p>

<dl>
<dt>{{domxref("CharacterData.appendData()")}}</dt>
Expand Down Expand Up @@ -83,12 +83,10 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<p>The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
</div>


<p>{{Compat("api.CharacterData")}}</p>

<h2 id="See_also">See also</h2>


<ul>
<li><a href="/en-US/docs/Web/API/Document_Object_Model">The DOM interfaces index</a>.</li>
</ul>
1 change: 0 additions & 1 deletion files/en-us/web/api/document_object_model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ <h2 id="DOM_interfaces">DOM interfaces</h2>
<li>{{DOMxRef("NodeFilter")}}</li>
<li>{{DOMxRef("NodeIterator")}}</li>
<li>{{DOMxRef("NodeList")}}</li>
<li>{{DOMxRef("NonDocumentTypeChildNode")}}</li>
<li>{{DOMxRef("ParentNode")}}</li>
<li>{{DOMxRef("ProcessingInstruction")}}</li>
<li>{{DOMxRef("Selection")}} {{Experimental_Inline}}</li>
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/element/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<h2 id="Properties">Properties</h2>

<p><em>Inherits properties from its parent interface, {{DOMxRef("Node")}}, and by extension that interface's parent, {{DOMxRef("EventTarget")}}. It implements the properties of {{DOMxRef("ParentNode")}}, {{DOMxRef("ChildNode")}}, {{DOMxRef("NonDocumentTypeChildNode")}},</em> and {{DOMxRef("Animatable")}}.</p>
<p><em><code>Element</code> inherits properties from its parent interface, {{DOMxRef("Node")}}, and by extension that interface's parent, {{DOMxRef("EventTarget")}}.</em></p>

<dl>
<dt>{{DOMxRef("Element.assignedSlot")}}{{readonlyInline}}</dt>
Expand Down Expand Up @@ -55,15 +55,15 @@ <h2 id="Properties">Properties</h2>
<p><strong>Note:</strong> In Firefox 3.5 and earlier, HTML elements are in no namespace. In later versions, HTML elements are in the <code><a class="linkification-ext external" href="https://www.w3.org/1999/xhtml" title="Linkification: http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a></code> namespace in both HTML and XML trees. {{ gecko_minversion_inline("1.9.2")}}</p>
</div>
</dd>
<dt>{{DOMxRef("NonDocumentTypeChildNode.nextElementSibling")}} {{readOnlyInline}}</dt>
<dt>{{DOMxRef("Element.nextElementSibling")}} {{readOnlyInline}}</dt>
<dd>Is an {{DOMxRef("Element")}}, the element immediately following the given one in the tree, or <code>null</code> if there's no sibling node.</dd>
<dt>{{DOMxRef("Element.outerHTML")}}</dt>
<dd>Is a {{DOMxRef("DOMString")}} representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.</dd>
<dt>{{DOMxRef("Element.part")}}</dt>
<dd>Represents the part identifier(s) of the element (i.e. set using the <code>part</code> attribute), returned as a {{domxref("DOMTokenList")}}.</dd>
<dt>{{DOMxRef("Element.prefix")}} {{readOnlyInline}}</dt>
<dd>A {{DOMxRef("DOMString")}} representing the namespace prefix of the element, or <code>null</code> if no prefix is specified.</dd>
<dt>{{DOMxRef("NonDocumentTypeChildNode.previousElementSibling")}} {{readOnlyInline}}</dt>
<dt>{{DOMxRef("Element.previousElementSibling")}} {{readOnlyInline}}</dt>
<dd>Is a {{DOMxRef("Element")}}, the element immediately preceding the given one in the tree, or <code>null</code> if there is no sibling element.</dd>
<dt>{{DOMxRef("Element.scrollHeight")}} {{readOnlyInline}}</dt>
<dd>Returns a {{jsxref("Number")}} representing the scroll view height of an element.</dd>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h3 id="Handlers">Event handlers</h3>

<h2 id="Methods">Methods</h2>

<p><em>Inherits methods from its parents {{DOMxRef("Node")}}, and its own parent, {{DOMxRef("EventTarget")}}, and implements those of {{DOMxRef("ParentNode")}}, {{DOMxRef("ChildNode")}}, {{DOMxRef("NonDocumentTypeChildNode")}}, and {{DOMxRef("Animatable")}}.</em></p>
<p><em><code>Element</code> inherits methods from its parents {{DOMxRef("Node")}}, and its own parent, {{DOMxRef("EventTarget")}}.</em></p>

<dl>
<dt>{{DOMxRef("EventTarget.addEventListener()")}}</dt>
Expand Down
67 changes: 67 additions & 0 deletions files/en-us/web/api/element/nextelementsibling/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: Element.nextElementSibling
slug: Web/API/Element/nextElementSibling
tags:
- API
- DOM
- Element
- Property
---
<div>{{APIRef("DOM")}}</div>

<p>The <code><strong>Element.nextElementSibling</strong></code> read-only
property returns the element immediately following the specified one in its parent's
children list, or <code>null</code> if the specified element is the last one in the list.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: js">
// Getter
element = el.nextElementSibling;

// No setter; read-only property
</pre>

<h2 id="Example">Example</h2>

<pre class="brush: html">&lt;div id="div-01"&gt;Here is div-01&lt;/div&gt;
&lt;div id="div-02"&gt;Here is div-02&lt;/div&gt;

&lt;script type="text/javascript"&gt;
let el = document.getElementById('div-01').nextElementSibling;
console.log('Siblings of div-01:');
while (el) {
console.log(el.nodeName);
el = el.nextElementSibling;
}
&lt;/script&gt;
</pre>

<p>This example outputs the following into the console when it loads:</p>

<pre>Siblings of div-01:
DIV
SCRIPT</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
</tr>
<tr>
<td>{{SpecName('DOM WHATWG', '#dom-nondocumenttypechildnode-nextelementsibling', 'NonDocumentTypeChildNode.nextElementSibling')}}</td>
</tr>
</tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("api.Element.nextElementSibling")}}</p>

<h2 id="See_also">See also</h2>

<ul>
<li>{{domxref("Element.previousElementSibling")}}</li>
</ul>
Loading