Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 890889 of NameList

  • Revision slug: Web/API/NameList
  • Revision title: NameList
  • Revision id: 890889
  • Created:
  • Creator: Sebastianz
  • Is current revision? Yes
  • Comment Replaced link in 'Specifications' section by table
Tags: 

Revision Content

{{APIRef("DOM")}}{{ obsolete_header("10.0") }}

Note: Although this interface was previously implemented in Gecko, there was no way to actually create one. NameList has been removed effective with {{ Gecko("10.0") }}

Provides an abstraction for an ordered collection of name and namespace value pairs. Items can be accessed by a 0-based index. The DOM spec does not specify how the collection is to be implemented.

Properties

{{domxref("NameList.length")}}{{readonlyInline}}

Methods

{{domxref("NameList.contains()")}}
Returns a {{jsxref("Boolean")}}.
{{domxref("NameList.containsNS()")}}
Returns a {{jsxref("Boolean")}}
{{domxref("NameList.getName()")}}
Returns a {{domxref("DOMString")}}
{{domxref("NameList.getNamespaceURI()")}}
Returns a {{domxref("DOMString")}}

Specifications

Specification Status Comment
{{SpecName("DOM3 Core", "core.html#NameList", "NameList")}} {{Spec2("DOM3 Core")}} Initial definition

Revision Source

<p>{{APIRef("DOM")}}{{ obsolete_header("10.0") }}</p>

<div class="note">
<p><strong>Note:</strong> Although this interface was previously implemented in Gecko, there was no way to actually create one. NameList has been removed effective with {{ Gecko("10.0") }}</p>
</div>

<p>Provides an abstraction for an ordered collection of name and namespace value pairs. Items can be accessed by a 0-based index. The DOM&nbsp;spec does not specify how the collection is to be implemented.</p>

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

<dl>
 <dt>{{domxref("NameList.length")}}{{readonlyInline}}</dt>
</dl>

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

<dl>
 <dt>{{domxref("NameList.contains()")}}</dt>
 <dd>Returns a {{jsxref("Boolean")}}.</dd>
 <dt>{{domxref("NameList.containsNS()")}}</dt>
 <dd>Returns a {{jsxref("Boolean")}}</dd>
 <dt>{{domxref("NameList.getName()")}}</dt>
 <dd>Returns a {{domxref("DOMString")}}</dd>
 <dt>{{domxref("NameList.getNamespaceURI()")}}</dt>
 <dd>Returns a {{domxref("DOMString")}}</dd>
</dl>

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

<table class="standard-table">
 <tbody>
  <tr>
   <th>Specification</th>
   <th>Status</th>
   <th>Comment</th>
  </tr>
  <tr>
   <td>{{SpecName("DOM3 Core", "core.html#NameList", "NameList")}}</td>
   <td>{{Spec2("DOM3 Core")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>
Revert to this revision