interface Node
{
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; // historical
const unsigned short ENTITY_NODE = 6; // historical
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; // historical
readonlyattribute unsigned short nodeType;
readonlyattribute DOMString nodeName;
readonlyattribute USVString baseURI;
readonlyattribute boolean isConnected;
readonlyattribute Document? ownerDocument;
Node getRootNode(optional GetRootNodeOptions options);
readonlyattribute Node? parentNode;
readonlyattribute Element? parentElement;
boolean hasChildNodes();
[SameObject] readonlyattribute NodeList childNodes;
readonlyattribute Node? firstChild;
readonlyattribute Node? lastChild;
readonlyattribute Node? previousSibling;
readonlyattribute Node? nextSibling;
[CEReactions] attribute DOMString? nodeValue;
[CEReactions] attribute DOMString? textContent;
[CEReactions] void normalize();
[CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
boolean isEqualNode(Node? otherNode);
boolean isSameNode(Node? otherNode); // historical alias of ===
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(Node other);
boolean contains(Node? other);
DOMString? lookupPrefix(DOMString? namespace);
DOMString? lookupNamespaceURI(DOMString? prefix);
boolean isDefaultNamespace(DOMString? namespace);
[CEReactions] Node insertBefore(Node node, Node? child);
[CEReactions] Node appendChild(Node node);
[CEReactions] Node replaceChild(Node node, Node child);
[CEReactions] Node removeChild(Node child);
};
};
Implementation status
Number of constants in JS interface: 18/18 Number of attributes in JS interface: 14/14 Number of functions in JS interface: 15/15
Function
Implementation status
getRootNode
Complete
hasChildNodes
Complete
normalize
Complete
cloneNode
Complete
isEqualNode
Dummy
isSameNode
Complete
compareDocumentPosition
Complete
contains
Complete
lookupPrefix
Dummy
lookupNamespaceURI
Complete
isDefaultNamespace
Complete
insertBefore
Complete
appendChild
Complete
replaceChild
Complete
removeChild
Complete
Browser & Device compatibility
Device type
Support Status
Desktop PC browsers
Yes
HBBTV 1.5 devices
...
HBBTV 2.0.x devices
Yes
Notes
none
This page has been generated automatically from source code by the CoyoteBrowser InfoTool on Tue Jan 05 16:54:08 2021
. Some design elements from MDN are used under CC-BY-SA license from "Mozilla Contributors".