Node: {
    ATTRIBUTE_NODE: 2;
    CDATA_SECTION_NODE: 4;
    COMMENT_NODE: 8;
    DOCUMENT_FRAGMENT_NODE: 11;
    DOCUMENT_NODE: 9;
    DOCUMENT_POSITION_CONTAINED_BY: 16;
    DOCUMENT_POSITION_CONTAINS: 8;
    DOCUMENT_POSITION_DISCONNECTED: 1;
    DOCUMENT_POSITION_FOLLOWING: 4;
    DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
    DOCUMENT_POSITION_PRECEDING: 2;
    DOCUMENT_TYPE_NODE: 10;
    ELEMENT_NODE: 1;
    ENTITY_NODE: 6;
    ENTITY_REFERENCE_NODE: 5;
    NOTATION_NODE: 12;
    PROCESSING_INSTRUCTION_NODE: 7;
    prototype: Node;
    TEXT_NODE: 3;
    new (): Node;
}

Type declaration

  • ReadonlyATTRIBUTE_NODE: 2
  • ReadonlyCDATA_SECTION_NODE: 4

    node is a CDATASection node.

  • ReadonlyCOMMENT_NODE: 8

    node is a Comment node.

  • ReadonlyDOCUMENT_FRAGMENT_NODE: 11

    node is a DocumentFragment node.

  • ReadonlyDOCUMENT_NODE: 9

    node is a document.

  • ReadonlyDOCUMENT_POSITION_CONTAINED_BY: 16

    Set when other is a descendant of node.

  • ReadonlyDOCUMENT_POSITION_CONTAINS: 8

    Set when other is an ancestor of node.

  • ReadonlyDOCUMENT_POSITION_DISCONNECTED: 1

    Set when node and other are not in the same tree.

  • ReadonlyDOCUMENT_POSITION_FOLLOWING: 4

    Set when other is following node.

  • ReadonlyDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
  • ReadonlyDOCUMENT_POSITION_PRECEDING: 2

    Set when other is preceding node.

  • ReadonlyDOCUMENT_TYPE_NODE: 10

    node is a doctype.

  • ReadonlyELEMENT_NODE: 1

    node is an element.

  • ReadonlyENTITY_NODE: 6
  • ReadonlyENTITY_REFERENCE_NODE: 5
  • ReadonlyNOTATION_NODE: 12
  • ReadonlyPROCESSING_INSTRUCTION_NODE: 7

    node is a ProcessingInstruction node.

  • prototype: Node
  • ReadonlyTEXT_NODE: 3

    node is a Text node.