dom-node-constants.js 929 B

12345678910111213141516171819202122232425262728293031
  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. // Make this available to both AMD and CJS environments
  6. define(function (require, exports, module) {
  7. module.exports = {
  8. ELEMENT_NODE: 1,
  9. ATTRIBUTE_NODE: 2,
  10. TEXT_NODE: 3,
  11. CDATA_SECTION_NODE: 4,
  12. ENTITY_REFERENCE_NODE: 5,
  13. ENTITY_NODE: 6,
  14. PROCESSING_INSTRUCTION_NODE: 7,
  15. COMMENT_NODE: 8,
  16. DOCUMENT_NODE: 9,
  17. DOCUMENT_TYPE_NODE: 10,
  18. DOCUMENT_FRAGMENT_NODE: 11,
  19. NOTATION_NODE: 12,
  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. };
  28. });