dom-node-constants.js (783B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 "use strict"; 5 6 module.exports = { 7 ELEMENT_NODE: 1, 8 ATTRIBUTE_NODE: 2, 9 TEXT_NODE: 3, 10 CDATA_SECTION_NODE: 4, 11 ENTITY_REFERENCE_NODE: 5, 12 ENTITY_NODE: 6, 13 PROCESSING_INSTRUCTION_NODE: 7, 14 COMMENT_NODE: 8, 15 DOCUMENT_NODE: 9, 16 DOCUMENT_TYPE_NODE: 10, 17 DOCUMENT_FRAGMENT_NODE: 11, 18 NOTATION_NODE: 12, 19 20 // DocumentPosition 21 DOCUMENT_POSITION_DISCONNECTED: 0x01, 22 DOCUMENT_POSITION_PRECEDING: 0x02, 23 DOCUMENT_POSITION_FOLLOWING: 0x04, 24 DOCUMENT_POSITION_CONTAINS: 0x08, 25 DOCUMENT_POSITION_CONTAINED_BY: 0x10, 26 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20, 27 };