mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 02:19:31 +08:00
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
export var SelectorType;
|
|
(function (SelectorType) {
|
|
SelectorType["Attribute"] = "attribute";
|
|
SelectorType["Pseudo"] = "pseudo";
|
|
SelectorType["PseudoElement"] = "pseudo-element";
|
|
SelectorType["Tag"] = "tag";
|
|
SelectorType["Universal"] = "universal";
|
|
// Traversals
|
|
SelectorType["Adjacent"] = "adjacent";
|
|
SelectorType["Child"] = "child";
|
|
SelectorType["Descendant"] = "descendant";
|
|
SelectorType["Parent"] = "parent";
|
|
SelectorType["Sibling"] = "sibling";
|
|
SelectorType["ColumnCombinator"] = "column-combinator";
|
|
})(SelectorType || (SelectorType = {}));
|
|
/**
|
|
* Modes for ignore case.
|
|
*
|
|
* This could be updated to an enum, and the object is
|
|
* the current stand-in that will allow code to be updated
|
|
* without big changes.
|
|
*/
|
|
export const IgnoreCaseMode = {
|
|
Unknown: null,
|
|
QuirksMode: "quirks",
|
|
IgnoreCase: true,
|
|
CaseSensitive: false,
|
|
};
|
|
export var AttributeAction;
|
|
(function (AttributeAction) {
|
|
AttributeAction["Any"] = "any";
|
|
AttributeAction["Element"] = "element";
|
|
AttributeAction["End"] = "end";
|
|
AttributeAction["Equals"] = "equals";
|
|
AttributeAction["Exists"] = "exists";
|
|
AttributeAction["Hyphen"] = "hyphen";
|
|
AttributeAction["Not"] = "not";
|
|
AttributeAction["Start"] = "start";
|
|
})(AttributeAction || (AttributeAction = {}));
|