diff --git a/dom.bs b/dom.bs index d5beb1fa..79425204 100644 --- a/dom.bs +++ b/dom.bs @@ -3820,11 +3820,11 @@ the data. When a collection is created, a filter and a root are associated with it. -The collection then -represents -a view of the subtree rooted at the collection's root, containing only nodes that match the -given filter. The view is linear. In the absence of specific requirements to the contrary, the nodes -within the collection must be sorted in tree order. +A collection's +nodes +are the nodes, in the subtree rooted at the collection's root, that match the +given filter. This is a linear view; in the absence of specific requirements to the contrary, the +nodes are sorted in tree order.
The object's supported property indices are the numbers in the range zero to one less than -the number of nodes represented by the collection. If there are no such -elements, then there are no supported property indices. +the size of the collection's nodes. If that size is zero, then there +are no supported property indices. -
The length attribute must return the number of nodes -represented by the collection. +
The length getter steps are to return the size of +this's nodes. -
The item(index) method must return the
-indexth node in the collection. If there is no
-indexth node in the collection, then the method must
-return null.
+
The item(index) method steps are to return
+the indexth node in this's nodes, or
+null if there is no such node.
sequence<T> in IDL instead).
The object's supported property indices are the numbers in the range zero to one less than -the number of elements represented by the collection. If there are no such -elements, then there are no supported property indices. +the size of the collection's elements. If that size is zero, then there +are no supported property indices.
The length getter steps are to return the
-number of nodes represented by the collection.
+size of this's elements.
The item(index) method steps are to
-return the indexth element in the collection. If there
-is no indexth element in the collection, then the method
-must return null.
+return the indexth element in this's
+elements, or null if there is no such element.
The supported property names are the values from the list returned by these steps: @@ -3918,8 +3916,7 @@ must return null.
Let result be an empty list.
For each element represented by the collection, in - tree order: +
For each element of this's elements:
If element has an ID which is not in result, @@ -3935,25 +3932,35 @@ must return null.
Return result.
The namedItem(key) method steps are:
+
To find a named element in a +list of elements elements given a string key:
If key is the empty string, return null. +
If key is the empty string, then return null.
Return the first element in the collection for which at least one of - the following is true: +
If elements contains an element for which one of the following is + true:
name attribute whose value is
- key;
+ key,
or null if there is no such element. +
then return the first such element. + +
Return null.
The namedItem(key) method steps are
+to find a named element in this's elements given key.
+