You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
790 B

  1. "use strict";
  2. module.exports.NAMESPACES = {
  3. HTML: "http://www.w3.org/1999/xhtml",
  4. XML: "http://www.w3.org/XML/1998/namespace",
  5. XMLNS: "http://www.w3.org/2000/xmlns/"
  6. };
  7. module.exports.NODE_TYPES = {
  8. ELEMENT_NODE: 1,
  9. ATTRIBUTE_NODE: 2, // historical
  10. TEXT_NODE: 3,
  11. CDATA_SECTION_NODE: 4,
  12. ENTITY_REFERENCE_NODE: 5, // historical
  13. ENTITY_NODE: 6, // historical
  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 // historical
  20. };
  21. module.exports.VOID_ELEMENTS = new Set([
  22. "area",
  23. "base",
  24. "basefont",
  25. "bgsound",
  26. "br",
  27. "col",
  28. "embed",
  29. "frame",
  30. "hr",
  31. "img",
  32. "input",
  33. "keygen",
  34. "link",
  35. "menuitem",
  36. "meta",
  37. "param",
  38. "source",
  39. "track",
  40. "wbr"
  41. ]);