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

  • Revision slug: DOM/NameList
  • Revision title: NameList
  • Revision id: 62257
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment update for bug 688531; 41 words added, 33 words removed
Tags: 

Revision Content

{{ obsolete_header("10.0") }}

{{ gecko_callout_heading("10.0") }}

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 {{ geckoRelease("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>{{ obsolete_header("10.0") }}</p>
<div class="geckoVersionNote" style="undefined"> <p>{{ gecko_callout_heading("10.0") }}</p> <p>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 {{ geckoRelease("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 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> </td> <td><code><a class="internal" href="/En/DOM/Boolean" title="En/DOM/Boolean">Boolean<br> </a></code></td> </tr> <tr> <td><code><a class="internal" href="/En/DOM/NameList.containsNS" title="En/DOM/NameList.containsNS">containsNS</a> (namespaceURI, nameStr )</code></td> <td> </td> <td><code><a class="internal" href="/En/DOM/Boolean" title="En/DOM/Boolean">Boolean</a><a class="internal" href="/En/DOM/Boolean" title="En/DOM/Boolean"><br> </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> </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> </td> <td><code><a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a></code></td> </tr> </tbody>
</table>
<p> </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