Introduced in: | DOM 3 Core |
The NameList interface provides the abstraction of an ordered collection
of parallel pairs of name and namespace values (which could be null
values), without defining or constraining how this collection is
implemented. The items in the NameList are accessible via an integral
index, starting from 0.
Note (Mozilla): Although there is an XPCOM interface for it, this does not seem to be implemented in Mozilla
length:Number
[read-only]
Introduced in: | DOM 3 Core |
The number of pairs (name and namespaceURI) in the list. The range
of valid child node indices is 0 to length-1 inclusive.
Implementation public function get length():Number
See also
public function contains(str:DOMString):Boolean
Introduced in: | DOM 3 Core |
Test if a name is part of this NameList.
Parameters
Returns | Boolean — If the name has been found.
|
See also
public function containsNS(namespaceURI:DOMString, name:DOMString):Boolean
Introduced in: | DOM 3 Core |
Test if the pair namespaceURI/name is part of this NameList.
Parameters
| namespaceURI:DOMString — The namespace URI to look for.
|
|
| name:DOMString — The name to look for.
|
Returns | Boolean — If the pair namespaceURI/name has been found.
|
See also
public function getName(index:Number):DOMString
Introduced in: | DOM 3 Core |
Returns the indexth name item in the collection.
Parameters
| index:Number — Index into the collection.
|
Returns | DOMString — The name at the indexth position in the NameList, or null if
there is no name for the specified index or if the index is out of range.
|
See also
public function getNamespaceURI(index:Number):DOMString
Introduced in: | DOM 3 Core |
Returns the indexth namespaceURI item in the collection.
Parameters
| index:Number — Index into the collection.
|
Returns | DOMString — The namespace URI at the indexth position in the NameList, or null
if there is no name for the specified index or if the index is out of range.
|
See also
Mon Aug 17 2009, 10:08 AM -04:00