Skip to content
Permalink
Browse files

[g] (1) Drop the syntax sugar for walking the keys of a Storage object.

git-svn-id: http://svn.whatwg.org/webapps@5806 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jan 29, 2011
1 parent ce62ddf commit 933e800a4a3720b0420f4a2ad20208e8c66981fa
Showing with 3 additions and 15 deletions.
  1. +2 −8 complete.html
  2. +1 −7 source

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 January 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 29 January 2011</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->

<pre class=idl>interface <dfn id=storage-0>Storage</dfn> {
readonly attribute unsigned long <a href=#dom-storage-length title=dom-Storage-length>length</a>;
getter DOMString <a href=#dom-storage-key title=dom-Storage-key>key</a>(in unsigned long index);
DOMString <a href=#dom-storage-key title=dom-Storage-key>key</a>(in unsigned long index);
getter any <a href=#dom-storage-getitem title=dom-Storage-getItem>getItem</a>(in DOMString key);
setter creator void <a href=#dom-storage-setitem title=dom-Storage-setItem>setItem</a>(in DOMString key, in any value);
deleter void <a href=#dom-storage-removeitem title=dom-Storage-removeItem>removeItem</a>(in DOMString key);
all be associated with the same list of key/value pairs
simultaneously.</p>

<p>The object's <a href=#supported-property-indices>supported property indices</a> are the
numbers in the range zero to one less than the number of key/value
pairs currently present in the list associated with the object. If
the list is empty, then there are no <a href=#supported-property-indices>supported property
indices</a>.</p>

<p>The <dfn id=dom-storage-length title=dom-Storage-length><code>length</code></dfn>
attribute must return the number of key/value pairs currently
present in the list associated with the object.</p>
8 source

<pre class="idl">interface <dfn>Storage</dfn> {
readonly attribute unsigned long <span title="dom-Storage-length">length</span>;
getter DOMString <span title="dom-Storage-key">key</span>(in unsigned long index);
DOMString <span title="dom-Storage-key">key</span>(in unsigned long index);
getter any <span title="dom-Storage-getItem">getItem</span>(in DOMString key);
setter creator void <span title="dom-Storage-setItem">setItem</span>(in DOMString key, in any value);
deleter void <span title="dom-Storage-removeItem">removeItem</span>(in DOMString key);
all be associated with the same list of key/value pairs
simultaneously.</p>

<p>The object's <span>supported property indices</span> are the
numbers in the range zero to one less than the number of key/value
pairs currently present in the list associated with the object. If
the list is empty, then there are no <span>supported property
indices</span>.</p>

<p>The <dfn title="dom-Storage-length"><code>length</code></dfn>
attribute must return the number of key/value pairs currently
present in the list associated with the object.</p>

0 comments on commit 933e800

Please sign in to comment.
You can’t perform that action at this time.