Difference between revisions of "lure.dom.document"

Line 57: Line 57:
 
| align="left" style="padding-left:10px;" |Creates a text node
 
| align="left" style="padding-left:10px;" |Creates a text node
 
| align="left" style="padding-left:10px;" |No
 
| 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
 
 
|-
 
|-
 
| renameNode()
 
| renameNode()
Line 119: Line 115:
 
|-
 
|-
 
| getElementsByTagName()
 
| getElementsByTagName()
 +
|-
 +
| getElementsByClassName()
 +
|-
 +
| getElementById()
 
|}
 
|}

Revision as of 03:04, 5 November 2011

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 Sets or returns the title of the document No
body Returns the html body element if exists No
head Returns the html head element if exists No

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
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()