DOM

DOM1-interface Node:

$node.nodeName
$
node.nodeValue
$node.
nodeValue[new value]
^if($
node.nodeType == $xnode:ELEMENT_NODE){…}
$
Node[$node.parentNode]
$
NodeList[$node.childNodes]
$
Node[$node.firstChild]
$
Node[$node.lastChild]
$
Node[$node.previousSibling]
$
Node[$node.nextSibling]
$
NamedNodeMap[$node_of_type_ELEMENT.attributes]
$
Document[$node.ownerDocument]

DOM2-interface Node
:
$node.prefix
$
node.namespaceURI


DOM1-interface Element
:

$node_of_type__ELEMENT.tagName

DOM1-interface Attr:

$node_of_type__ATTRIBUTE.name

^if($node_of_type__ATTRIBUTE.
specified
){…}
$node_of_type__ATTRIBUTE.
value


DOM1-interface ProcessingInstruction:

$node_of_type__PROCESSING_INSTRUCTION.target
$node_of_type__PROCESSING_INSTRUCTION.
data


DOM1-interface DocumentType
:

$node_of_type__DOCUMENT_TYPE.name
$node_of_type__DOCUMENT_TYPE
.entities
$node_of_type__DOCUMENT_TYPE
.notations

DOM1-interface Notation
:

$node_of_type__NOTATION.publicId
$node_of_type__NOTATION.
systemId



In Parser
·DOM interface NodeList is class hash with keys 0, 1, …;  
·DOM interface NamedNodeMap is class hash where the keys are attribute names;  
·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: 08.09.2010