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

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

length (read-only)

Methods

Name Action Return
contains ( str )   Boolean
containsNS (namespaceURI, nameStr )   Boolean
getName ( idx )   DOMString
getNamespaceURI ( idx )   DOMString

 

Specification

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>

<h3 id="Properties">Properties</h3>

<p><a class="internal" href="/En/DOM/NameList.length" title="En/DOM/NameList.length"><code>length</code></a> (read-only)</p>

<h3 id="Methods">Methods</h3>

<table border="1" cellpadding="1" cellspacing="1" style="width: 480px; height: 169px;">
 <tbody>
  <tr>
   <td>Name</td>
   <td>Action</td>
   <td>Return</td>
  </tr>
  <tr>
   <td><code><a class="internal" href="/En/DOM/NameList.contains" title="En/DOM/NameList.contains">contains</a> ( str )</code></td>
   <td>&nbsp;</td>
   <td><code><a class="internal" href="/En/DOM/Boolean" title="En/DOM/Boolean">Boolean</a></code></td>
  </tr>
  <tr>
   <td><code><a class="internal" href="/En/DOM/NameList.containsNS" title="En/DOM/NameList.containsNS">containsNS</a>&nbsp;(namespaceURI, nameStr )</code></td>
   <td>&nbsp;</td>
   <td><code><a class="internal" href="/En/DOM/Boolean" title="En/DOM/Boolean">Boolean</a></code></td>
  </tr>
  <tr>
   <td><code><a class="internal" href="/En/DOM/NameList.getName" title="En/DOM/NameList.getName">getName</a> ( idx )</code></td>
   <td>&nbsp;</td>
   <td><code><a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a></code></td>
  </tr>
  <tr>
   <td><code><a class="internal" href="/En/DOM/NameList.getNamespaceURI" title="En/DOM/NameList.getNamespaceURI">getNamespaceURI</a> ( idx )</code></td>
   <td>&nbsp;</td>
   <td><code><a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a></code></td>
  </tr>
 </tbody>
</table>

<p>&nbsp;</p>

<h3 id="Specification">Specification</h3>

<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