Revision 463193 of ElementTraversal

  • Revision slug: Web/API/ElementTraversal
  • Revision title: ElementTraversal
  • Revision id: 463193
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment Web/API/DocumentTraversal Web/API/ElementTraversal

Revision Content

{{obsolete_header}}

The DocumentTraversal interface was defining methods allowing to access from one {{domxref("Node")}} to another one in the document tree.

It proves useless as very few type of {{domxref("Node")}} were able to implement all its methods and properties. It has been split into two interfaces, {{domxref("ChildNode")}} and {{domxref("ParentNode")}} containing the useful methods and properties for each kind of nodes.

As it was a pure interface, with no object of this type, this change has no effect on the Web.

Specifications

Specification Status Comment
{{SpecName('DOM WHATWG', '#interface-childnode', 'ChildNode')}} {{Spec2('DOM WHATWG')}} Splitted the ElementTraversal interface in {{domxref("ParentNode")}} and {{domxref("ChildNode")}}
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}} {{Spec2('Element Traversal')}} Initial definition

 

Revision Source

<p>{{obsolete_header}}</p>
<p>The <strong><code>DocumentTraversal</code></strong> interface was defining methods allowing to access from one {{domxref("Node")}} to another one in the document tree.</p>
<p>It proves useless as very few type of {{domxref("Node")}} were able to implement all its methods and properties. It has been split into two interfaces, {{domxref("ChildNode")}} and {{domxref("ParentNode")}} containing the useful methods and properties for each kind of nodes.</p>
<p>As it was a pure interface, with no object of this type, this change has no effect on the Web.</p>
<h2 id="Specification" name="Specification">Specifications</h2>
<table class="standard-table">
  <tbody>
  </tbody>
</table>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{SpecName('DOM WHATWG', '#interface-childnode', 'ChildNode')}}</td>
      <td>{{Spec2('DOM WHATWG')}}</td>
      <td>Splitted the <code>ElementTraversal</code> interface in {{domxref("ParentNode")}} and {{domxref("ChildNode")}}</td>
    </tr>
    <tr>
      <td>{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}</td>
      <td>{{Spec2('Element Traversal')}}</td>
      <td>Initial definition</td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
Revert to this revision