Bug 1514809 - Enable userScripts API on release by default r=kmag
[gecko.git] / devtools / shared / dom-node-constants.js
blob61fc3b070f4fe93f5736a15bb63e02cd1ca2d870
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";
6 /* globals define */
8 // Make this available to both AMD and CJS environments
9 define(function(require, exports, module) {
10   module.exports = {
11     ELEMENT_NODE: 1,
12     ATTRIBUTE_NODE: 2,
13     TEXT_NODE: 3,
14     CDATA_SECTION_NODE: 4,
15     ENTITY_REFERENCE_NODE: 5,
16     ENTITY_NODE: 6,
17     PROCESSING_INSTRUCTION_NODE: 7,
18     COMMENT_NODE: 8,
19     DOCUMENT_NODE: 9,
20     DOCUMENT_TYPE_NODE: 10,
21     DOCUMENT_FRAGMENT_NODE: 11,
22     NOTATION_NODE: 12,
24     // DocumentPosition
25     DOCUMENT_POSITION_DISCONNECTED: 0x01,
26     DOCUMENT_POSITION_PRECEDING: 0x02,
27     DOCUMENT_POSITION_FOLLOWING: 0x04,
28     DOCUMENT_POSITION_CONTAINS: 0x08,
29     DOCUMENT_POSITION_CONTAINED_BY: 0x10,
30     DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20,
31   };
32 });