Difference between revisions of "lure.dom.node"

Line 66: Line 66:
  
 
== DOM Node Methods ==
 
== DOM Node Methods ==
 +
 +
Methods present in this table are methods currently planned for implementation. Not all W3C DOM methods will be implemented.
 +
 +
{|
 +
! align="left" | Method
 +
! align="left" style="padding-left:10px;" | Description
 +
! align="left" style="padding-left:10px;" | Implemented
 +
|-
 +
| appendChild()
 +
| align="left" style="padding-left:10px;" |Adds a new child node to the end of the list of children of a node
 +
| align="left" style="padding-left:10px;" |Yes
 +
|-
 +
| cloneNode()
 +
| align="left" style="padding-left:10px;" |Clones a node
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| hasAttributes()
 +
| align="left" style="padding-left:10px;" |Returns true if a node has any attributes, otherwise it returns false
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| hasChildNodes()
 +
| align="left" style="padding-left:10px;" |Returns true if a node has any child nodes, otherwise it returns false
 +
| align="left" style="padding-left:10px;" |Yes
 +
|-
 +
| insertBefore()
 +
| align="left" style="padding-left:10px;" |Inserts a new child node before an existing child node
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| isEqualNode()
 +
| align="left" style="padding-left:10px;" |Checks if two nodes are equal
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| isSameNode()
 +
| align="left" style="padding-left:10px;" |Checks if two nodes are the same node
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| normalize()
 +
| align="left" style="padding-left:10px;" |Puts all text nodes underneath a node (including attributes) into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes
 +
| align="left" style="padding-left:10px;" |No
 +
|-
 +
| removeChild()
 +
| align="left" style="padding-left:10px;" |Removes a child node
 +
| align="left" style="padding-left:10px;" |Yes
 +
|-
 +
| replaceChild()
 +
| align="left" style="padding-left:10px;" |Replaces a child node
 +
| align="left" style="padding-left:10px;" |No
 +
|}
 +
  
 
== DOM Node Inherited Properties ==
 
== DOM Node Inherited Properties ==
  
None
+
This Object does not inherit Properties from any base Object
  
 
== DOM Node Inherited Methods ==
 
== DOM Node Inherited Methods ==
  
None
+
This Object does not inherit Methods from any base Object

Revision as of 06:05, 3 November 2011

DOM Node Object

Desc

DOM Node Properties

Properties present in this table are properties currently planned for implementation. Not all W3C DOM Properties will be implemented.

Property Description Implemented
childNodes Returns a NodeList of child nodes for a node Yes
firstChild Returns the first child of a node No
localName Returns the local part of the name of a node No
nextSibling Returns the node immediately following a node No
lastChild Returns the last child of a node No
nodeName Returns the name of a node, depending on its type Yes
nodeType Returns the type of a node Yes
nodeValue Sets or returns the value of a node, depending on its type Partial
ownerDocument Returns the root element (document object) for a node No
parentNode Returns the parent node of a node Yes
textContent Sets or returns the textual content of a node and its descendants No
text Returns the text of a node and its descendants. No
xml Returns the XML of a node and its descendants. No

DOM Node Methods

Methods present in this table are methods currently planned for implementation. Not all W3C DOM methods will be implemented.

Method Description Implemented
appendChild() Adds a new child node to the end of the list of children of a node Yes
cloneNode() Clones a node No
hasAttributes() Returns true if a node has any attributes, otherwise it returns false No
hasChildNodes() Returns true if a node has any child nodes, otherwise it returns false Yes
insertBefore() Inserts a new child node before an existing child node No
isEqualNode() Checks if two nodes are equal No
isSameNode() Checks if two nodes are the same node No
normalize() Puts all text nodes underneath a node (including attributes) into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes No
removeChild() Removes a child node Yes
replaceChild() Replaces a child node No


DOM Node Inherited Properties

This Object does not inherit Properties from any base Object

DOM Node Inherited Methods

This Object does not inherit Methods from any base Object