Difference between revisions of "lure.dom.document"
Line 12: | Line 12: | ||
! align="left" style="padding-left:10px;" | Implemented | ! align="left" style="padding-left:10px;" | Implemented | ||
|- | |- | ||
− | | | + | | documentElement |
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |Returns the root node of the document |
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |No |
+ | |- | ||
+ | | title | ||
+ | | align="left" style="padding-left:10px;" |Sets or returns the title of the document | ||
+ | | align="left" style="padding-left:10px;" |No | ||
|} | |} | ||
Line 26: | Line 30: | ||
! align="left" style="padding-left:10px;" | Implemented | ! align="left" style="padding-left:10px;" | Implemented | ||
|- | |- | ||
− | | | + | | createAttribute(name) |
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |Creates an attribute node with the specified name, and returns the new Attr object |
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |No |
+ | |- | ||
+ | | createCDATASection() | ||
+ | | align="left" style="padding-left:10px;" |Creates a CDATA section node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
+ | |- | ||
+ | | createComment() | ||
+ | | align="left" style="padding-left:10px;" |Creates a comment node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
+ | |- | ||
+ | | createElement() | ||
+ | | align="left" style="padding-left:10px;" |Creates an element node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
+ | |- | ||
+ | | createTextNode() | ||
+ | | align="left" style="padding-left:10px;" |Creates a text node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
+ | |- | ||
+ | | getElementById(id) | ||
+ | | align="left" style="padding-left:10px;" |Returns the element that has an ID attribute with the given value. | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | getElementsByTagName(tagName) | ||
+ | | align="left" style="padding-left:10px;" |Returns a NodeList of all elements with a specified name | ||
+ | | align="left" style="padding-left:10px;" |No | ||
+ | |- | ||
+ | | renameNode() | ||
+ | | align="left" style="padding-left:10px;" |Renames an element or attribute node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
|} | |} | ||
Line 38: | Line 70: | ||
! align="left" | Property | ! align="left" | Property | ||
|- | |- | ||
− | | | + | | childNodes |
+ | |- | ||
+ | | firstChild | ||
+ | |- | ||
+ | | lastChild | ||
+ | |- | ||
+ | | nodeName | ||
+ | |- | ||
+ | | nodeType | ||
+ | |- | ||
+ | | nodeValue | ||
+ | |- | ||
+ | | test | ||
+ | |- | ||
+ | | xml | ||
|} | |} | ||
Line 48: | Line 94: | ||
! align="left" | Method | ! align="left" | Method | ||
|- | |- | ||
− | | | + | | appendChild() |
+ | |- | ||
+ | | hasAttributes() | ||
+ | |- | ||
+ | | hasChildNodes() | ||
+ | |- | ||
+ | | insertBefore() | ||
+ | |- | ||
+ | | isEqualNode() | ||
+ | |- | ||
+ | | isSameNode() | ||
+ | |- | ||
+ | | normalize() | ||
+ | |- | ||
+ | | removeChild() | ||
+ | |- | ||
+ | | replaceChild() | ||
|} | |} |
Revision as of 07:10, 3 November 2011
Contents
DOM Document Object
Desc
DOM Document Properties
Properties present in this table are properties currently planned for implementation. Not all W3C DOM Properties will be implemented.
Property | Description | Implemented |
---|---|---|
documentElement | Returns the root node of the document | No |
title | Sets or returns the title of the document | No |
DOM Document Methods
Methods present in this table are methods currently planned for implementation. Not all W3C DOM methods will be implemented.
Method | Description | Implemented |
---|---|---|
createAttribute(name) | Creates an attribute node with the specified name, and returns the new Attr object | No |
createCDATASection() | Creates a CDATA section node | No |
createComment() | Creates a comment node | No |
createElement() | Creates an element node | No |
createTextNode() | Creates a text node | No |
getElementById(id) | Returns the element that has an ID attribute with the given value. | Yes |
getElementsByTagName(tagName) | Returns a NodeList of all elements with a specified name | No |
renameNode() | Renames an element or attribute node | No |
DOM Document Inherited Properties
This Object inherits the following properties from DOM Node
Property |
---|
childNodes |
firstChild |
lastChild |
nodeName |
nodeType |
nodeValue |
test |
xml |
DOM Document Inherited Methods
This Object inherits the following methods from DOM Node
Method |
---|
appendChild() |
hasAttributes() |
hasChildNodes() |
insertBefore() |
isEqualNode() |
isSameNode() |
normalize() |
removeChild() |
replaceChild() |