DOM

DOM1-interface Document:

$
Element[^document.createElement[tagName]]
$
DocumentFragment[^document.createDocumentFragment[]]
$
Text[^document.createTextNode[data]]
$
Comment[^document.createComment[data]]
$
CDATASection[^document.createCDATASection[data]]
$
ProcessingInstruction[^document.createProcessingInstruction[target;data]]
$
Attr[^document.createAttribute[name]]
$
EntityReference[^document.createEntityReference[name]]
$
NodeList[^document.getElementsByTagName[tagname]]

DOM2-interface Document:

$Node[^document.importNode[importedNode](deep)]
$
Element[^document.createElementNS[namespaceURI;qualifiedName]]
$
Attr[^document.createAttributeNS[namespaceURI;qualifiedName]]
$
NodeList[^document.getElementsByTagNameNS[namespaceURI;localName]]
$
Element[^document.getElementById[elementId]]


In Parser
·DOM-interfaces Node and Element are implemented in class xnode;  
·DOM-interface NodeList-is class hash with keys 0, 1, …;  
·DOM-type DOMString-is class string;  
·DOM-type Boolean is Boolean value: 0=FALSE, 1=TRUE.  

Detailed specification of DOM1 is available at: http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html


Detailed specification of DOM1 is available at: http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 24.12.2004