Java Reference
In-Depth Information
A NodeList is a live snapshot of nodes. Any change made to the nodes within the DOM are immedi-
ately refl ected in every reference of the NodeList.
Properties
Property Name
Description
Introduced
length
The number of nodes in the list.
Level 1
Methods
Method Name
Description
Introduced
item(index)
Returns the item at the specifi ed index. Returns null if the
index is greater than or equal to the list's length.
Level 1
NamedNodeMap
Objects referred to as NamedNodeMaps represent collections of nodes that can be accessed by name. This
object does not inherit from NodeList. An element's attribute list is an example of a NamedNodeMap.
Properties
Property Name
Description
Introduced
length
The number of nodes in the map.
Level 1
Methods
Method Name
Description
Introduced
getNamedItem(name)
Retrieves a node by the specifi ed name.
Level 1
removeNamedItem(name)
Removes an item by the specifi ed name.
Level 1
setNamedItem(node)
Adds a node to the list by using its nodeName
property as its key.
Level 1
High-Level DOM Objects
These objects inherit Node and are the basis for even higher-level DOM objects as specifi ed by the HTML
DOM. These objects mirror the different node types.
The following objects are listed in alphabetical order. The CDATASection , Comment , DocumentType ,
Entity , EntityReference , Notation , and ProcessingInstruction objects are purposefully
omitted from this section.
Search WWH ::




Custom Search