Difference between revisions of "lure.dom.document"
(→Document Methods) |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == Document Object == |
Desc | Desc | ||
− | == | + | == Document Properties == |
Properties present in this table are properties currently planned for implementation. Not all W3C DOM Properties will be implemented. | Properties present in this table are properties currently planned for implementation. Not all W3C DOM Properties will be implemented. | ||
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;" |Yes |
+ | |- | ||
+ | | title | ||
+ | | align="left" style="padding-left:10px;" |returns the title of the document | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | html | ||
+ | | align="left" style="padding-left:10px;" |Returns the html root element if exists | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | body | ||
+ | | align="left" style="padding-left:10px;" |Returns the html body element if exists | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | head | ||
+ | | align="left" style="padding-left:10px;" |Returns the html head element if exists | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
|} | |} | ||
− | == | + | == Document Methods == |
Methods present in this table are methods currently planned for implementation. Not all W3C DOM methods will be implemented. | Methods present in this table are methods currently planned for implementation. Not all W3C DOM methods will be implemented. | ||
Line 26: | Line 42: | ||
! 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;" |Yes |
+ | |- | ||
+ | | createCDATASection() | ||
+ | | align="left" style="padding-left:10px;" |Creates a CDATA section node | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | createComment() | ||
+ | | align="left" style="padding-left:10px;" |Creates a comment node | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | createElement() | ||
+ | | align="left" style="padding-left:10px;" |Creates an element node | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | createTextNode() | ||
+ | | align="left" style="padding-left:10px;" |Creates a text node | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | createStylesheet() | ||
+ | | align="left" style="padding-left:10px;" |Creates a stylesheet object | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | renameNode() | ||
+ | | align="left" style="padding-left:10px;" |Renames an element or attribute node | ||
+ | | align="left" style="padding-left:10px;" |No | ||
|} | |} | ||
− | == | + | == Document Inherited Properties == |
This Object inherits the following properties from [[lure.dom.node|DOM Node]] | This Object inherits the following properties from [[lure.dom.node|DOM Node]] | ||
Line 37: | Line 77: | ||
{| | {| | ||
! align="left" | Property | ! align="left" | Property | ||
− | |||
− | |||
|- | |- | ||
− | | | + | | id |
− | | | + | |- |
− | | | + | | childNodes |
+ | |- | ||
+ | | firstChild | ||
+ | |- | ||
+ | | previousSibling | ||
+ | |- | ||
+ | | nextSibling | ||
+ | |- | ||
+ | | lastChild | ||
+ | |- | ||
+ | | nodeName | ||
+ | |- | ||
+ | | nodeType | ||
+ | |- | ||
+ | | nodeValue | ||
+ | |- | ||
+ | | test | ||
+ | |- | ||
+ | | xml | ||
|} | |} | ||
− | == | + | == Document Inherited Methods == |
This Object inherits the following methods from [[lure.dom.node|DOM Node]] | This Object inherits the following methods from [[lure.dom.node|DOM Node]] | ||
− | |||
{| | {| | ||
! align="left" | Method | ! align="left" | Method | ||
− | |||
− | |||
|- | |- | ||
− | | | + | | appendChild() |
− | | | + | |- |
− | | | + | | hasAttributes() |
+ | |- | ||
+ | | hasChildNodes() | ||
+ | |- | ||
+ | | insertBefore() | ||
+ | |- | ||
+ | | isEqualNode() | ||
+ | |- | ||
+ | | isSameNode() | ||
+ | |- | ||
+ | | normalize() | ||
+ | |- | ||
+ | | removeChild() | ||
+ | |- | ||
+ | | replaceChild() | ||
+ | |- | ||
+ | | getElementsByTagName() | ||
+ | |- | ||
+ | | getElementsByClassName() | ||
+ | |- | ||
+ | | getElementById() | ||
|} | |} |
Latest revision as of 09:03, 3 December 2011
Contents
Document Object
Desc
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 | Yes |
title | returns the title of the document | Yes |
html | Returns the html root element if exists | Yes |
body | Returns the html body element if exists | Yes |
head | Returns the html head element if exists | Yes |
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 | Yes |
createCDATASection() | Creates a CDATA section node | Yes |
createComment() | Creates a comment node | Yes |
createElement() | Creates an element node | Yes |
createTextNode() | Creates a text node | Yes |
createStylesheet() | Creates a stylesheet object | Yes |
renameNode() | Renames an element or attribute node | No |
Document Inherited Properties
This Object inherits the following properties from DOM Node
Property |
---|
id |
childNodes |
firstChild |
previousSibling |
nextSibling |
lastChild |
nodeName |
nodeType |
nodeValue |
test |
xml |
Document Inherited Methods
This Object inherits the following methods from DOM Node
Method |
---|
appendChild() |
hasAttributes() |
hasChildNodes() |
insertBefore() |
isEqualNode() |
isSameNode() |
normalize() |
removeChild() |
replaceChild() |
getElementsByTagName() |
getElementsByClassName() |
getElementById() |