Permalink
Browse files

[] (0) WebIDLize remaining enumerated interfaces.

git-svn-id: http://svn.whatwg.org/webapps@2660 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 2d368df commit b5192f80dac4690fc60a71eb8900c680a76253a0 @Hixie Hixie committed Jan 14, 2009
Showing with 91 additions and 28 deletions.
  1. +41 −13 index
  2. +50 −15 source
View
54 index
@@ -5557,7 +5557,7 @@ interface <dfn id=htmloptionscollection-0>HTMLOptionsCollection</dfn> {
underlying string on spaces</a>. This is the <var title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></var>.</p>
<p>The object's <span>indices of the supported indexed
- properties</span> are the numbers in the range zero to the <var title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></var>-1, unless the <var title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></var> is zero, in which case
+ properties</span> are the numbers in the range zero to <span><var title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></var>-1</span>, unless the <var title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></var> is zero, in which case
there are no <span>supported indexed properties</span>.</p>
<p>The <dfn id=dom-tokenlist-item title=dom-tokenlist-item><code>item(<var title="">index</var>)</code></dfn> method must <a href=#split-a-string-on-spaces title="split a
@@ -5746,7 +5746,7 @@ interface <dfn id=htmloptionscollection-0>HTMLOptionsCollection</dfn> {
<pre class=idl>[NameCreator, NameDeleter, NameGetter, NameSetter]
interface <dfn id=domstringmap-0>DOMStringMap</dfn> {};</pre>
- <p>The names of the supported named properties on a
+ <p>The <span>names of the supported named properties</span> on a
<code><a href=#domstringmap-0>DOMStringMap</a></code> object at any instant are the names of
each pair returned from the algorithm for getting the list of
name-value pairs at that instant.</p>
@@ -31791,7 +31791,15 @@ XXX selection ranges -->
<p>The <dfn id=dom-datagridselection-length title=dom-DataGridSelection-length><code>length</code></dfn>
attribute must return the number of rows currently present in the
- selection. The <dfn id=dom-datagridselection-item title=dom-DataGridSelection-item><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th row in the selection. If the argument is out
+ selection. This is the <var title=dom-DataGridSelection-length><a href=#dom-datagridselection-length>length</a></var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var title=dom-DataGridSelection-length><a href=#dom-datagridselection-length>length</a></var>-1</span>, unless
+ the <var title=dom-DataGridSelection-length><a href=#dom-datagridselection-length>length</a></var> is zero,
+ in which case there are no <span>supported indexed
+ properties</span>.</p>
+
+ <p>The <dfn id=dom-datagridselection-item title=dom-DataGridSelection-item><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th row in the selection. If the argument is out
of range (less than zero or greater than the number of selected rows
minus one), then it must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception. <a href=#refsDOM3CORE>[DOM3CORE]</a></p>
@@ -33687,11 +33695,10 @@ interface <dfn id=window>Window</dfn> {
<p>The <span>indices of the supported indexed properties</span> on
the <code><a href=#window>Window</a></code> object at any instant are the numbers in the
- range 0 .. <var title="">n</var>, where <var title="">n</var> is the
- number of <a href=#child-browsing-context title="child browsing context">child browsing
- contexts</a> of the <a href=#active-document title="active document">active</a>
- <code>Document</code>. If <var title="">n</var> is zero then there
- are no <span>supported indexed properties</span>.</p>
+ range 0 .. <span><var title="">n</var>-1</span>, where <var title="">n</var> is the number of <a href=#child-browsing-context title="child browsing
+ context">child browsing contexts</a> of the <a href=#active-document title="active
+ document">active</a> <code>Document</code>. If <var title="">n</var> is zero then there are no <span>supported indexed
+ properties</span>.</p>
<p>When a <code><a href=#window>Window</a></code> object is <dfn id=dom-window-item title=dom-window-item>indexed to retrieve an indexed
property</dfn> <var title="">index</var>, the value returned must be
@@ -39064,6 +39071,12 @@ user reload must be equivalent to .reload()
all be associated with the same list of key/value pairs
simultaneously.</p>
+ <p>The object's <span>indices of the supported indexed
+ properties</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 indexed properties</span>.</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>
@@ -39081,6 +39094,10 @@ user reload must be equivalent to .reload()
in the object, then this method must raise an
<code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+ <p>The <span>names of the supported named properties</span> on a
+ <code><a href=#storage-0>Storage</a></code> object are the keys of each key/value pair
+ currently present in the list associated with the object.</p>
+
<p>The <dfn id=dom-storage-getitem title=dom-Storage-getItem><code>getItem(<var title="">key</var>)</code></dfn> method must return the current
value associated with the given <var title="">key</var>. If the
given <var title="">key</var> does not exist in the list associated
@@ -39649,7 +39666,13 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
<p><code><a href=#sqlresultsetrowlist>SQLResultSetRowList</a></code> objects have a <dfn id=dom-sqlresultsetrowlist-length title=dom-SQLResultSetRowList-length><code>length</code></dfn>
attribute that must return the number of rows it represents (the
- number of rows returned by the database).</p>
+ number of rows returned by the database). This is the <var title=dom-SQLResultSetRowList-length><a href=#dom-sqlresultsetrowlist-length>length</a></var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var title=dom-SQLResultSetRowList-length><a href=#dom-sqlresultsetrowlist-length>length</a></var>-1</span>, unless
+ the <var title=dom-SQLResultSetRowList-length><a href=#dom-sqlresultsetrowlist-length>length</a></var> is
+ zero, in which case there are no <span>supported indexed
+ properties</span>.</p>
<p>The <dfn id=dom-sqlresultsetrowlist-item title=dom-SQLResultSetRowList-item><code>item(<var title="">index</var>)</code></dfn> attribute must return the row
with the given index <var title="">index</var>. If there is no such
@@ -43170,13 +43193,13 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
interface can be used:</p>
<pre class=idl>interface <dfn id=undomanager>UndoManager</dfn> {
+ readonly attribute unsigned long <a href=#dom-undomanager-length title=dom-UndoManager-length>length</a>;
+ [IndexGetter] any <a href=#dom-undomanager-item title=dom-UndoManager-item>item</a>(in unsigned long index);
+ readonly attribute unsigned long <a href=#dom-undomanager-position title=dom-UndoManager-position>position</a>;
unsigned long <a href=#dom-undomanager-add title=dom-UndoManager-add>add</a>(in any data, in DOMString title);
void <a href=#dom-undomanager-remove title=dom-UndoManager-remove>remove</a>(in unsigned long index);
void <a href=#dom-undomanager-clearundo title=dom-UndoManager-clearUndo>clearUndo</a>();
void <a href=#dom-undomanager-clearredo title=dom-UndoManager-clearRedo>clearRedo</a>();
- [IndexGetter] any <a href=#dom-undomanager-item title=dom-UndoManager-item>item</a>(in unsigned long index);
- readonly attribute unsigned long <a href=#dom-undomanager-length title=dom-UndoManager-length>length</a>;
- readonly attribute unsigned long <a href=#dom-undomanager-position title=dom-UndoManager-position>position</a>;
};</pre>
<p>The <dfn id=dom-undomanager title=dom-undoManager><code>undoManager</code></dfn>
@@ -43193,7 +43216,12 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
<p>The <dfn id=dom-undomanager-length title=dom-UndoManager-length><code>length</code></dfn>
attribute must return the number of <a href=#undo-object>undo object</a> entries
- in the <a href=#undo-transaction-history>undo transaction history</a>.</p>
+ in the <a href=#undo-transaction-history>undo transaction history</a>. This is the <var title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></var>-1</span>, unless the
+ <var title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></var> is zero, in which
+ case there are no <span>supported indexed properties</span>.</p>
<p>The <dfn id=dom-undomanager-item title=dom-UndoManager-item><code>item(<var title="">n</var>)</code></dfn> method must return the <var title="">n</var>th <a href=#undo-object>undo object</a> entry in the <a href=#undo-transaction-history>undo
transaction history</a>.</p>
View
65 source
@@ -5471,8 +5471,8 @@ interface <dfn>HTMLOptionsCollection</dfn> {
title="dom-tokenlist-length">length</var>.</p>
<p>The object's <span>indices of the supported indexed
- properties</span> are the numbers in the range zero to the <var
- title="dom-tokenlist-length">length</var>-1, unless the <var
+ properties</span> are the numbers in the range zero to <span><var
+ title="dom-tokenlist-length">length</var>-1</span>, unless the <var
title="dom-tokenlist-length">length</var> is zero, in which case
there are no <span>supported indexed properties</span>.</p>
@@ -5707,7 +5707,7 @@ interface <dfn>HTMLOptionsCollection</dfn> {
<pre class="idl">[NameCreator, NameDeleter, NameGetter, NameSetter]
interface <dfn>DOMStringMap</dfn> {};</pre>
- <p>The names of the supported named properties on a
+ <p>The <span>names of the supported named properties</span> on a
<code>DOMStringMap</code> object at any instant are the names of
each pair returned from the algorithm for getting the list of
name-value pairs at that instant.</p>
@@ -36051,8 +36051,17 @@ XXX selection ranges -->
<p>The <dfn
title="dom-DataGridSelection-length"><code>length</code></dfn>
attribute must return the number of rows currently present in the
- selection. The <dfn
- title="dom-DataGridSelection-item"><code>item(<var
+ selection. This is the <var
+ title="dom-DataGridSelection-length">length</var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var
+ title="dom-DataGridSelection-length">length</var>-1</span>, unless
+ the <var title="dom-DataGridSelection-length">length</var> is zero,
+ in which case there are no <span>supported indexed
+ properties</span>.</p>
+
+ <p>The <dfn title="dom-DataGridSelection-item"><code>item(<var
title="">index</var>)</code></dfn> method must return the <var
title="">index</var>th row in the selection. If the argument is out
of range (less than zero or greater than the number of selected rows
@@ -38253,11 +38262,12 @@ interface <dfn>Window</dfn> {
<p>The <span>indices of the supported indexed properties</span> on
the <code>Window</code> object at any instant are the numbers in the
- range 0 .. <var title="">n</var>, where <var title="">n</var> is the
- number of <span title="child browsing context">child browsing
- contexts</span> of the <span title="active document">active</span>
- <code>Document</code>. If <var title="">n</var> is zero then there
- are no <span>supported indexed properties</span>.</p>
+ range 0 .. <span><var title="">n</var>-1</span>, where <var
+ title="">n</var> is the number of <span title="child browsing
+ context">child browsing contexts</span> of the <span title="active
+ document">active</span> <code>Document</code>. If <var
+ title="">n</var> is zero then there are no <span>supported indexed
+ properties</span>.</p>
<p>When a <code>Window</code> object is <dfn
title="dom-window-item">indexed to retrieve an indexed
@@ -44470,6 +44480,12 @@ user reload must be equivalent to .reload()
all be associated with the same list of key/value pairs
simultaneously.</p>
+ <p>The object's <span>indices of the supported indexed
+ properties</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 indexed properties</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>
@@ -44490,6 +44506,10 @@ user reload must be equivalent to .reload()
in the object, then this method must raise an
<code>INDEX_SIZE_ERR</code> exception.</p>
+ <p>The <span>names of the supported named properties</span> on a
+ <code>Storage</code> object are the keys of each key/value pair
+ currently present in the list associated with the object.</p>
+
<p>The <dfn title="dom-Storage-getItem"><code>getItem(<var
title="">key</var>)</code></dfn> method must return the current
value associated with the given <var title="">key</var>. If the
@@ -45140,7 +45160,15 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
<p><code>SQLResultSetRowList</code> objects have a <dfn
title="dom-SQLResultSetRowList-length"><code>length</code></dfn>
attribute that must return the number of rows it represents (the
- number of rows returned by the database).</p>
+ number of rows returned by the database). This is the <var
+ title="dom-SQLResultSetRowList-length">length</var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var
+ title="dom-SQLResultSetRowList-length">length</var>-1</span>, unless
+ the <var title="dom-SQLResultSetRowList-length">length</var> is
+ zero, in which case there are no <span>supported indexed
+ properties</span>.</p>
<p>The <dfn title="dom-SQLResultSetRowList-item"><code>item(<var
title="">index</var>)</code></dfn> attribute must return the row
@@ -49268,13 +49296,13 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
interface can be used:</p>
<pre class="idl">interface <dfn>UndoManager</dfn> {
+ readonly attribute unsigned long <span title="dom-UndoManager-length">length</span>;
+ [IndexGetter] any <span title="dom-UndoManager-item">item</span>(in unsigned long index);
+ readonly attribute unsigned long <span title="dom-UndoManager-position">position</span>;
unsigned long <span title="dom-UndoManager-add">add</span>(in any data, in DOMString title);
void <span title="dom-UndoManager-remove">remove</span>(in unsigned long index);
void <span title="dom-UndoManager-clearUndo">clearUndo</span>();
void <span title="dom-UndoManager-clearRedo">clearRedo</span>();
- [IndexGetter] any <span title="dom-UndoManager-item">item</span>(in unsigned long index);
- readonly attribute unsigned long <span title="dom-UndoManager-length">length</span>;
- readonly attribute unsigned long <span title="dom-UndoManager-position">position</span>;
};</pre>
<p>The <dfn title="dom-undoManager"><code>undoManager</code></dfn>
@@ -49291,7 +49319,14 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
<p>The <dfn title="dom-UndoManager-length"><code>length</code></dfn>
attribute must return the number of <span>undo object</span> entries
- in the <span>undo transaction history</span>.</p>
+ in the <span>undo transaction history</span>. This is the <var
+ title="dom-UndoManager-length">length</var>.</p>
+
+ <p>The object's <span>indices of the supported indexed
+ properties</span> are the numbers in the range zero to <span><var
+ title="dom-UndoManager-length">length</var>-1</span>, unless the
+ <var title="dom-UndoManager-length">length</var> is zero, in which
+ case there are no <span>supported indexed properties</span>.</p>
<p>The <dfn title="dom-UndoManager-item"><code>item(<var
title="">n</var>)</code></dfn> method must return the <var

0 comments on commit b5192f8

Please sign in to comment.