Skip to content

Commit

Permalink
Remove DOMStringList definition (Resolves #28)
Browse files Browse the repository at this point in the history
Following whatwg/html@a830aef the definition of DOMStringList is now in [HTML].
  • Loading branch information
inexorabletash committed Jan 13, 2017
1 parent bf39fe8 commit 3b8a857
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 167 deletions.
70 changes: 0 additions & 70 deletions index.bs
Expand Up @@ -5040,73 +5040,6 @@ event handler for the <code>error</code> event.
the <code>success</code> event fires.
</aside>

<!-- ============================================================ -->
<h3 id=domstringlist-api>The {{DOMStringList}} interface</h3>
<!-- ============================================================ -->

The {{DOMStringList}} interface represents an immutable ordered
collection of zero or more {{DOMString}} values. The items in a
{{DOMStringList}} are accessible via an integral index, starting from
zero.

<aside class=note>
The {{DOMStringList}} interface was previously defined in
[[DOM-Level-3-core]] but has been removed from the current versions
of [[DOM]] and is now only referenced in this specification. It is
hoped that in the future all uses of this type can be replaced by
the conceptually similar <code>FrozenArray&lt;DOMString&gt;</code>
to enable the use of other [=Array=] methods, but retaining support
for the {{DOMStringList/contains()}} method for compatibility with
deployed content.
</aside>

<pre class=idl>
interface DOMStringList {
readonly attribute unsigned long length;
getter DOMString (unsigned long index);
DOMString? item(unsigned long index);

boolean contains(DOMString str);
};
</pre>

<div class=note>
<dl class=domintro>
<dt><var>list</var> . {{DOMStringList/length}}</dt>
<dd>
Returns the length of the list.
</dd>
<dt><var>list</var> [ <var>index</var> ]</dt>
<dt><var>list</var> . {{DOMStringList/item()|item}}(<var>index</var>)</dt>
<dd>
Returns the |index|th item in the list.
</dd>
<dt><var>list</var> . {{DOMStringList/contains()|contains}}(<var>string</var>)</dt>
<dd>
Returns true if the list contains |string|, or false otherwise.
</dd>
</dl>
</div>

The [=supported property indices=] for a {{DOMStringList}} |list|
are the numbers zero to the number of items in |list| minus one.
If |list| has no items, it has no [=supported property indices=].

To [=determine the value of an indexed property=] for a given index
|index| in a {{DOMStringList}} |list|, return the |index|<sup>th</sup>
item in |list|.

The <dfn attribute for=DOMStringList>length</dfn> attribute's
getter must return the number of items in the collection.

The <dfn method for=DOMStringList>item(|index|)</dfn> method must
return the |index|<sup>th</sup> item in the collection, or null
if there are less than |index| + 1 items in the collection.

The <dfn method for=DOMStringList>contains(|str|)</dfn> method must
return true if |str| is equal to any item in the collection, and false
otherwise.


<!-- ============================================================ -->
<h2 id=algorithms>Algorithms</h2>
Expand Down Expand Up @@ -6915,9 +6848,6 @@ document's Revision History</a>.
<a href="https://github.com/w3c/IndexedDB/issues/77">bug #79</a>,
<a href="https://github.com/w3c/IndexedDB/issues/77">bug #81</a>)

* Added {{DOMStringList}}.
(<a href="https://github.com/w3c/IndexedDB/issues/28">bug #28</a>)


<!-- ============================================================ -->
<h2 id=acknowledgements>Acknowledgements</h2>
Expand Down

0 comments on commit 3b8a857

Please sign in to comment.