Difference between revisions of "lure.dom.document"
(→Document Inherited Properties) |
(→Document Properties) |
||
Line 14: | Line 14: | ||
| documentElement | | documentElement | ||
| align="left" style="padding-left:10px;" |Returns the root node of the document | | align="left" style="padding-left:10px;" |Returns the root node of the document | ||
+ | | align="left" style="padding-left:10px;" |Yes | ||
+ | |- | ||
+ | | html | ||
+ | | align="left" style="padding-left:10px;" |returns the html node of the document | ||
| align="left" style="padding-left:10px;" |Yes | | align="left" style="padding-left:10px;" |Yes | ||
|- | |- | ||
| title | | title | ||
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |returns the title of the document |
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |Yes |
|- | |- | ||
| body | | body | ||
| align="left" style="padding-left:10px;" |Returns the html body element if exists | | align="left" style="padding-left:10px;" |Returns the html body element if exists | ||
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |Yes |
|- | |- | ||
| head | | head | ||
| align="left" style="padding-left:10px;" |Returns the html head element if exists | | align="left" style="padding-left:10px;" |Returns the html head element if exists | ||
− | | align="left" style="padding-left:10px;" | | + | | align="left" style="padding-left:10px;" |Yes |
|} | |} | ||
Revision as of 05:30, 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 |
html | returns the html node of the document | Yes |
title | returns the title of the document | 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 | 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 |
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() |