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 754727 of NameList

  • Revision slug: Web/API/NameList
  • Revision title: NameList
  • Revision id: 754727
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment
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

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="Specification">Specifications</h2>

<ul>
 <li><a class="external" href="https://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList" rel="freelink">https://www.w3.org/TR/DOM-Level-3-Cor....html#NameList</a></li>
</ul>
Revert to this revision