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 844747 of DOMStringList

  • Revision slug: Web/API/DOMStringList
  • Revision title: DOMStringList
  • Revision id: 844747
  • Created:
  • Creator: Sebastianz
  • Is current revision? Yes
  • Comment Added table to 'Specifications' section

Revision Content

{{APIRef("DOM")}}{{Obsolete_header}}

A type returned by some APIs which contains a list of DOMString (strings).

Properties

{{domxref("DOMStringList.length")}} {{ReadOnlyInline}}
Returns the length of the list,

Methods

{{domxref("DOMStringList.item()")}}
Returns a {{domxref("DOMString")}}.
{{domxref("DOMStringList.contains()")}}
Returns {{jsxref("Boolean")}} indicating if the given string is in the list

Specifications

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

Revision Source

<p>{{APIRef("DOM")}}{{Obsolete_header}}</p>

<p>A type returned by some APIs which contains a list of <a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a> (strings).</p>

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

<dl>
 <dt>{{domxref("DOMStringList.length")}} {{ReadOnlyInline}}</dt>
 <dd>Returns the length of the list,</dd>
</dl>

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

<dl>
 <dt>{{domxref("DOMStringList.item()")}}</dt>
 <dd>Returns a {{domxref("DOMString")}}.</dd>
 <dt>{{domxref("DOMStringList.contains()")}}</dt>
 <dd>Returns {{jsxref("Boolean")}} indicating if the given string is in the list</dd>
</dl>

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

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