DOM1.

DOM1-interface Node:

$Node[^node.insertBefore[$newChild;$refChild]]
$
Node[^node.replaceChild[$newChild;$oldChild]]
$
Node[^node.removeChild[$oldChild]]
$
Node[^node.appendChild[$newChild]]
^if(^
node.hasChildNodes[]){…}
$
Node[^node.cloneNode(deep)]

DOM1-interface Element
:

^node.getAttribute[name]
^
node.setAttribute[name;value]
^
node.removeAttribute[name]
$
Attr[^node.getAttributeNode[name]]
$
Attr[^node.setAttributeNode[$newAttr]]
$
Attr[^node.removeAttributeNode[$oldAttr]]
$
NodeList[^node.getElementsByTagName[name]]
^
node.normalize[]

DOM2-interface Element:

$string[^node.getAttributeNS[namespaceURI;localName]]
^
node.setAttributeNS[namespaceURI;qualifiedName;value]
^
node.removeAttributeNS[namespaceURI;localName]
$
Attr[^node.getAttributeNodeNS[namespaceURI;localName]]
$
Attr[^node.setAttributeNodeNS[$newAttr]]
$
NodeList[^node.getElementsByTagNameNS[namespaceURI;localName]]
^if(^
node.hasAttribute[name]){…}
^if(^
node.hasAttributeNS[namespaceURI;localName]){…}
^if(^node.hasAttributes[]){…}   [3.2.2]

In Parser
·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: 05.02.2008