nsgenbind
Loading...
Searching...
No Matches
node.idl
Go to the documentation of this file.
1interface Node : EventTarget {
2 const unsigned short ELEMENT_NODE = 1;
3 const unsigned short ATTRIBUTE_NODE = 2; // historical
4 const unsigned short TEXT_NODE = 3;
5 const unsigned short CDATA_SECTION_NODE = 4; // historical
6 const unsigned short ENTITY_REFERENCE_NODE = 5; // historical
7 const unsigned short ENTITY_NODE = 6; // historical
8 const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
9 const unsigned short COMMENT_NODE = 8;
10 const unsigned short DOCUMENT_NODE = 9;
11 const unsigned short DOCUMENT_TYPE_NODE = 10;
12 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
13 const unsigned short NOTATION_NODE = 12; // historical
14 readonly attribute unsigned short nodeType;
15 readonly attribute DOMString nodeName;
16
17 readonly attribute DOMString? baseURI;
18
19 readonly attribute Document? ownerDocument;
20 readonly attribute Node? parentNode;
21 readonly attribute Element? parentElement;
22 boolean hasChildNodes();
23 readonly attribute NodeList childNodes;
24 readonly attribute Node? firstChild;
25 readonly attribute Node? lastChild;
26 readonly attribute Node? previousSibling;
27 readonly attribute Node? nextSibling;
28
29 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
30 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
31 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
32 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
33 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
34 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; // historical
35 unsigned short compareDocumentPosition(Node other);
36 boolean contains(Node? other);
37
38 attribute DOMString? nodeValue;
39 attribute DOMString? textContent;
40 Node insertBefore(Node node, Node? child);
42 Node replaceChild(Node node, Node child);
44 void normalize();
45
46
47 Node cloneNode(optional boolean deep = true);
48 boolean isEqualNode(Node? node);
49
50 DOMString lookupPrefix(DOMString? namespace);
51 DOMString lookupNamespaceURI(DOMString? prefix);
52 boolean isDefaultNamespace(DOMString? namespace);
53};
Definition dom.idl:162
DOMString lookupPrefix(DOMString? namespace)
unsigned short compareDocumentPosition(Node other)
readonly attribute DOMString nodeName
Definition dom.idl:176
DOMString lookupNamespaceURI(DOMString? prefix)
const unsigned short DOCUMENT_POSITION_CONTAINED_BY
Definition dom.idl:201
const unsigned short DOCUMENT_POSITION_PRECEDING
Definition dom.idl:198
Node cloneNode(optional boolean deep=true)
const unsigned short CDATA_SECTION_NODE
Definition dom.idl:166
Node removeChild(Node child)
Node insertBefore(Node node, Node? child)
const unsigned short DOCUMENT_NODE
Definition dom.idl:171
const unsigned short ENTITY_REFERENCE_NODE
Definition dom.idl:167
readonly attribute Document ownerDocument
Definition dom.idl:180
readonly attribute Node firstChild
Definition dom.idl:185
readonly attribute unsigned short nodeType
Definition dom.idl:175
Node appendChild(Node node)
const unsigned short ATTRIBUTE_NODE
Definition dom.idl:164
readonly attribute DOMString baseURI
Definition dom.idl:178
attribute DOMString textContent
Definition dom.idl:191
boolean hasChildNodes()
const unsigned short DOCUMENT_POSITION_FOLLOWING
Definition dom.idl:199
const unsigned short DOCUMENT_POSITION_DISCONNECTED
Definition dom.idl:197
readonly attribute Node nextSibling
Definition dom.idl:188
boolean isDefaultNamespace(DOMString? namespace)
const unsigned short DOCUMENT_FRAGMENT_NODE
Definition dom.idl:173
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Definition dom.idl:202
const unsigned short ELEMENT_NODE
Definition dom.idl:163
const unsigned short NOTATION_NODE
Definition dom.idl:174
readonly attribute Node lastChild
Definition dom.idl:186
readonly attribute Node parentNode
Definition dom.idl:181
Node replaceChild(Node node, Node child)
boolean contains(Node? other)
const unsigned short PROCESSING_INSTRUCTION_NODE
Definition dom.idl:169
readonly attribute Node previousSibling
Definition dom.idl:187
readonly attribute NodeList childNodes
Definition dom.idl:184
void normalize()
const unsigned short COMMENT_NODE
Definition dom.idl:170
const unsigned short DOCUMENT_TYPE_NODE
Definition dom.idl:172
const unsigned short ENTITY_NODE
Definition dom.idl:168
readonly attribute Element parentElement
Definition dom.idl:182
const unsigned short TEXT_NODE
Definition dom.idl:165
attribute DOMString nodeValue
Definition dom.idl:190
const unsigned short DOCUMENT_POSITION_CONTAINS
Definition dom.idl:200
boolean isEqualNode(Node? node)