diff --git a/index.bs b/index.bs index 74db0f7..6c57e7e 100644 --- a/index.bs +++ b/index.bs @@ -5040,73 +5040,6 @@ event handler for the error event. the success event fires. - -

The {{DOMStringList}} interface

- - -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. - - - -
-interface DOMStringList {
-    readonly attribute unsigned long length;
-    getter DOMString (unsigned long index);
-    DOMString? item(unsigned long index);
-
-    boolean contains(DOMString str);
-};
-
- -
-
-
list . {{DOMStringList/length}}
-
- Returns the length of the list. -
-
list [ index ]
-
list . {{DOMStringList/item()|item}}(index)
-
- Returns the |index|th item in the list. -
-
list . {{DOMStringList/contains()|contains}}(string)
-
- Returns true if the list contains |string|, or false otherwise. -
-
-
- -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|th -item in |list|. - -The length attribute's -getter must return the number of items in the collection. - -The item(|index|) method must -return the |index|th item in the collection, or null -if there are less than |index| + 1 items in the collection. - -The contains(|str|) method must -return true if |str| is equal to any item in the collection, and false -otherwise. -

Algorithms

@@ -6915,9 +6848,6 @@ document's Revision History. bug #79, bug #81) -* Added {{DOMStringList}}. - (bug #28) -

Acknowledgements

diff --git a/index.html b/index.html index 63376ef..d227914 100644 --- a/index.html +++ b/index.html @@ -1455,7 +1455,7 @@

Indexed Database API 2.0

-

Editor’s Draft,

+

Editor’s Draft,

This version: @@ -1560,7 +1560,6 @@

Table of Contents

  • 4.7 The IDBKeyRange interface
  • 4.8 The IDBCursor interface
  • 4.9 The IDBTransaction interface -
  • 4.10 The DOMStringList interface
  • 5 Algorithms @@ -1852,7 +1851,7 @@

    2. Constructs

    -

    A sorted list is a DOMStringList containing strings +

    A sorted list is a DOMStringList containing strings sorted in ascending order by code unit.

    2.1. Database

    A database’s origin is the same as the origin of the document or worker. Each origin has an associated @@ -3178,7 +3177,7 @@

    interface IDBDatabase : EventTarget { readonly attribute DOMString name; readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames, optional IDBTransactionMode mode = "readonly"); @@ -3375,7 +3374,7 @@

    interface IDBObjectStore { attribute DOMString name; readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; + readonly attribute DOMStringList indexNames; readonly attribute IDBTransaction transaction; readonly attribute boolean autoIncrement; @@ -4912,7 +4911,7 @@

    transaction objects implement the following interface:

    [Exposed=(Window,Worker)]
     interface IDBTransaction : EventTarget {
    -  readonly attribute DOMStringList      objectStoreNames;
    +  readonly attribute DOMStringList      objectStoreNames;
       readonly attribute IDBTransactionMode mode;
       readonly attribute IDBDatabase        db;
       readonly attribute DOMException       error;
    @@ -5028,46 +5027,6 @@ 

    transaction's complete event rather than the success event of a particular request, because the transaction may still fail after the success event fires. -

    4.10. The DOMStringList interface

    -

    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.

    - -
    interface DOMStringList {
    -    readonly attribute unsigned long length;
    -    getter DOMString (unsigned long index);
    -    DOMString? item(unsigned long index);
    -
    -    boolean contains(DOMString str);
    -};
    -
    -
    -
    -
    list . length -
    Returns the length of the list. -
    list [ index ] -
    list . item(index) -
    Returns the indexth item in the list. -
    list . contains(string) -
    Returns true if the list contains string, or false otherwise. -
    -
    -

    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 indexth item in list.

    -

    The length attribute’s -getter must return the number of items in the collection.

    -

    The item(index) method must -return the indexth item in the collection, or null -if there are less than index + 1 items in the collection.

    -

    The contains(str) method must -return true if str is equal to any item in the collection, and false -otherwise.

    5. Algorithms

    5.1. Opening a database

    The steps for opening a database are defined in the @@ -6466,9 +6425,6 @@

    Clarified open request / connection queue processing. (bug #9, bug #78, bug #79, bug #81)

    -
  • -

    Added DOMStringList. -(bug #28)

    11. Acknowledgements

    Special thanks to Nikunj Mehta, the original author of the first @@ -6596,7 +6552,6 @@

    connection queue, in §2.8.1
  • containing only, in §2.9 -
  • contains(str), in §4.10
  • continue(), in §4.8
  • continue(key), in §4.8
  • continuePrimaryKey(key, primaryKey), in §4.8 @@ -6637,7 +6592,6 @@

    dfn for cursor, in §2.10
  • attribute for IDBCursor, in §4.8 -
  • DOMStringList, in §4.10
  • done, in §4.1
  • "done", in §4.1
  • done flag, in §2.8 @@ -6744,7 +6698,6 @@

    index set, in §2.2.1
  • inject a key into a value using a key path, in §7.2
  • in-line keys, in §2.2 -
  • item(index), in §4.10
  • key
  • @@ -7210,7 +7159,7 @@

    I interface IDBDatabase : EventTarget { readonly attribute DOMString name; readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames, optional IDBTransactionMode mode = "readonly"); @@ -7236,7 +7185,7 @@

    I interface IDBObjectStore { attribute DOMString name; readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; + readonly attribute DOMStringList indexNames; readonly attribute IDBTransaction transaction; readonly attribute boolean autoIncrement; @@ -7340,7 +7289,7 @@

    I [Exposed=(Window,Worker)] interface IDBTransaction : EventTarget { - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; readonly attribute IDBTransactionMode mode; readonly attribute IDBDatabase db; readonly attribute DOMException error; @@ -7360,14 +7309,6 @@

    I "versionchange" }; -interface DOMStringList { - readonly attribute unsigned long length; - getter DOMString (unsigned long index); - DOMString? item(unsigned long index); - - boolean contains(DOMString str); -}; -

    Issues Index