0fa72681936270f6ff9c98b7e12b1db859e25921b4b403e25e92444516004821b9dee43bed142e8a4c5367dd1a007b67775e32b2d2d11050c5b32a21376843 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. export var SelectorType;
  2. (function (SelectorType) {
  3. SelectorType["Attribute"] = "attribute";
  4. SelectorType["Pseudo"] = "pseudo";
  5. SelectorType["PseudoElement"] = "pseudo-element";
  6. SelectorType["Tag"] = "tag";
  7. SelectorType["Universal"] = "universal";
  8. // Traversals
  9. SelectorType["Adjacent"] = "adjacent";
  10. SelectorType["Child"] = "child";
  11. SelectorType["Descendant"] = "descendant";
  12. SelectorType["Parent"] = "parent";
  13. SelectorType["Sibling"] = "sibling";
  14. SelectorType["ColumnCombinator"] = "column-combinator";
  15. })(SelectorType || (SelectorType = {}));
  16. /**
  17. * Modes for ignore case.
  18. *
  19. * This could be updated to an enum, and the object is
  20. * the current stand-in that will allow code to be updated
  21. * without big changes.
  22. */
  23. export const IgnoreCaseMode = {
  24. Unknown: null,
  25. QuirksMode: "quirks",
  26. IgnoreCase: true,
  27. CaseSensitive: false,
  28. };
  29. export var AttributeAction;
  30. (function (AttributeAction) {
  31. AttributeAction["Any"] = "any";
  32. AttributeAction["Element"] = "element";
  33. AttributeAction["End"] = "end";
  34. AttributeAction["Equals"] = "equals";
  35. AttributeAction["Exists"] = "exists";
  36. AttributeAction["Hyphen"] = "hyphen";
  37. AttributeAction["Not"] = "not";
  38. AttributeAction["Start"] = "start";
  39. })(AttributeAction || (AttributeAction = {}));