Node.idl |
Use the links in the table of contents to the left to access the documentation.
# |
interface Node #if ( defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C) #endif /* defined(LANGUAGE_OBJECTIVE_C) */ // NodeType const unsigned short ELEMENT_NODE = 1; const unsigned short ATTRIBUTE_NODE = 2; const unsigned short TEXT_NODE = 3; const unsigned short CDATA_SECTION_NODE = 4; const unsigned short ENTITY_REFERENCE_NODE = 5; const unsigned short ENTITY_NODE = 6; const unsigned short PROCESSING_INSTRUCTION_NODE = 7; const unsigned short COMMENT_NODE = 8; const unsigned short DOCUMENT_NODE = 9; const unsigned short DOCUMENT_TYPE_NODE = 10; const unsigned short DOCUMENT_FRAGMENT_NODE = 11; const unsigned short NOTATION_NODE = 12; readonly attribute DOMString nodeName; // FIXME: the spec says this can also raise on retrieval. attribute DOMString nodeValue setter raises(DOMException); readonly attribute unsigned short nodeType; readonly attribute Node parentNode; readonly attribute NodeList childNodes; readonly attribute Node firstChild; readonly attribute Node lastChild; readonly attribute Node previousSibling; readonly attribute Node nextSibling; readonly attribute NamedNodeMap attributes; readonly attribute Document ownerDocument; Node insertBefore( in Node newChild, in Node refChild) raises(DOMException); Node replaceChild( in Node newChild, in Node oldChild) raises(DOMExceptionJSC); Node removeChild( in Node oldChild) raises(DOMException); Node appendChild( in Node newChild) raises(DOMException); boolean hasChildNodes(); Node cloneNode( in boolean deep); void normalize(); // Introduced in DOM Level 2: boolean isSupported( in DOMString feature, in DOMString version); readonly attribute DOMString namespaceURI; attribute DOMString prefix setter raises(DOMException); readonly attribute DOMString localName; boolean hasAttributes(); // Introduced in DOM Level 3: readonly attribute DOMString baseURI; // FIXME: the spec says this can also raise on retrieval. attribute DOMString textContent setter raises(DOMException); boolean isSameNode( in Node other); boolean isEqualNode( in Node other); DOMString lookupPrefix( in DOMString namespaceURI); boolean isDefaultNamespace( in DOMString namespaceURI); DOMString lookupNamespaceURI( in DOMString prefix); // DocumentPosition const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; unsigned short compareDocumentPosition( in Node other); #if ( 0) #endif /* 0 */ // IE extensions readonly attribute Element parentElement; #if ( defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C) #endif /* defined(LANGUAGE_OBJECTIVE_C) */ #if ( !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C) #if ( !defined(LANGUAGE_GOBJECT) || !LANGUAGE_GOBJECT) void addEventListener( in DOMString type, in EventListener listener, in boolean useCapture); void removeEventListener( in DOMString type, in EventListener listener, in boolean useCapture); boolean dispatchEvent( in Event event) raises(EventException); #endif #endif ;
Module
core
addEventListener |
void addEventListener( in DOMString type, in EventListener listener, in boolean useCapture);
Module
core
appendChild |
Node appendChild( in Node newChild) raises(DOMException);
Module
core
cloneNode |
Node cloneNode( in boolean deep);
Module
core
compareDocumentPosition |
unsigned short compareDocumentPosition( in Node other);
Module
core
dispatchEvent |
boolean dispatchEvent( in Event event) raises(EventException);
Module
core
hasAttributes |
boolean hasAttributes();
Module
core
hasChildNodes |
boolean hasChildNodes();
Module
core
insertBefore |
Node insertBefore( in Node newChild, in Node refChild) raises(DOMException);
Module
core
isDefaultNamespace |
boolean isDefaultNamespace( in DOMString namespaceURI);
Module
core
isEqualNode |
boolean isEqualNode( in Node other);
Module
core
isSameNode |
boolean isSameNode( in Node other);
Module
core
isSupported |
boolean isSupported( in DOMString feature, in DOMString version);
Module
core
lookupNamespaceURI |
DOMString lookupNamespaceURI( in DOMString prefix);
Module
core
lookupPrefix |
DOMString lookupPrefix( in DOMString namespaceURI);
Module
core
normalize |
void normalize();
Module
core
removeChild |
Node removeChild( in Node oldChild) raises(DOMException);
Module
core
removeEventListener |
void removeEventListener( in DOMString type, in EventListener listener, in boolean useCapture);
Module
core
replaceChild |
Node replaceChild( in Node newChild, in Node oldChild) raises(DOMExceptionJSC);
Module
core
ATTRIBUTE_NODE |
const unsigned short ATTRIBUTE_NODE = 2;
Module
core
attributes |
readonly attribute NamedNodeMap attributes;
Module
core
baseURI |
readonly attribute DOMString baseURI;
Module
core
CDATA_SECTION_NODE |
const unsigned short CDATA_SECTION_NODE = 4;
Module
core
childNodes |
readonly attribute NodeList childNodes;
Module
core
COMMENT_NODE |
const unsigned short COMMENT_NODE = 8;
Module
core
DOCUMENT_FRAGMENT_NODE |
const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
Module
core
DOCUMENT_NODE |
const unsigned short DOCUMENT_NODE = 9;
Module
core
DOCUMENT_POSITION_CONTAINED_BY |
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
Module
core
DOCUMENT_POSITION_CONTAINS |
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
Module
core
DOCUMENT_POSITION_DISCONNECTED |
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
Module
core
DOCUMENT_POSITION_FOLLOWING |
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
Module
core
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
Module
core
DOCUMENT_POSITION_PRECEDING |
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
Module
core
DOCUMENT_TYPE_NODE |
const unsigned short DOCUMENT_TYPE_NODE = 10;
Module
core
ELEMENT_NODE |
const unsigned short ELEMENT_NODE = 1;
Module
core
ENTITY_NODE |
const unsigned short ENTITY_NODE = 6;
Module
core
ENTITY_REFERENCE_NODE |
const unsigned short ENTITY_REFERENCE_NODE = 5;
Module
core
firstChild |
readonly attribute Node firstChild;
Module
core
lastChild |
readonly attribute Node lastChild;
Module
core
localName |
readonly attribute DOMString localName;
Module
core
namespaceURI |
readonly attribute DOMString namespaceURI;
Module
core
nextSibling |
readonly attribute Node nextSibling;
Module
core
nodeName |
readonly attribute DOMString nodeName;
Module
core
nodeType |
readonly attribute unsigned short nodeType;
Module
core
nodeValue |
attribute DOMString nodeValue setter raises(DOMException);
Module
core
NOTATION_NODE |
const unsigned short NOTATION_NODE = 12;
Module
core
ownerDocument |
readonly attribute Document ownerDocument;
Module
core
parentElement |
readonly attribute Element parentElement;
Module
core
parentNode |
readonly attribute Node parentNode;
Module
core
prefix |
attribute DOMString prefix setter raises(DOMException);
Module
core
previousSibling |
readonly attribute Node previousSibling;
Module
core
PROCESSING_INSTRUCTION_NODE |
const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
Module
core
TEXT_NODE |
const unsigned short TEXT_NODE = 3;
Module
core
textContent |
attribute DOMString textContent setter raises(DOMException);
Module
core
Last Updated: 2010-05-27