aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/var
diff options
context:
space:
mode:
Diffstat (limited to 'src/selector/var')
-rw-r--r--src/selector/var/attributes.js6
-rw-r--r--src/selector/var/booleans.js4
-rw-r--r--src/selector/var/identifier.js4
-rw-r--r--src/selector/var/matches.js4
-rw-r--r--src/selector/var/pseudos.js6
-rw-r--r--src/selector/var/rcomma.js4
-rw-r--r--src/selector/var/rdescend.js4
-rw-r--r--src/selector/var/rleadingCombinator.js6
-rw-r--r--src/selector/var/rpseudo.js4
-rw-r--r--src/selector/var/rsibling.js2
10 files changed, 22 insertions, 22 deletions
diff --git a/src/selector/var/attributes.js b/src/selector/var/attributes.js
index f9813acec..33ba1ace2 100644
--- a/src/selector/var/attributes.js
+++ b/src/selector/var/attributes.js
@@ -1,8 +1,8 @@
-import whitespace from "../../var/whitespace.js";
-import identifier from "./identifier.js";
+import { whitespace } from "../../var/whitespace.js";
+import { identifier } from "./identifier.js";
// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors
-export default "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
+export var attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
// Operator (capture 2)
"*([*^$|!~]?=)" + whitespace +
diff --git a/src/selector/var/booleans.js b/src/selector/var/booleans.js
index 9dc3c97c7..bbdc4fdfc 100644
--- a/src/selector/var/booleans.js
+++ b/src/selector/var/booleans.js
@@ -1,2 +1,2 @@
-export default "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|" +
- "loop|multiple|open|readonly|required|scoped";
+export var booleans = "checked|selected|async|autofocus|autoplay|controls|" +
+ "defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped";
diff --git a/src/selector/var/identifier.js b/src/selector/var/identifier.js
index 03af0ddf3..d7e77ca4d 100644
--- a/src/selector/var/identifier.js
+++ b/src/selector/var/identifier.js
@@ -1,5 +1,5 @@
-import whitespace from "../../var/whitespace.js";
+import { whitespace } from "../../var/whitespace.js";
// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
-export default "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
+export var identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+";
diff --git a/src/selector/var/matches.js b/src/selector/var/matches.js
index 6f79452a1..3d87db3df 100644
--- a/src/selector/var/matches.js
+++ b/src/selector/var/matches.js
@@ -1,5 +1,5 @@
-import documentElement from "../../var/documentElement.js";
+import { documentElement } from "../../var/documentElement.js";
// Support: IE 9 - 11+
// IE requires a prefix.
-export default documentElement.matches || documentElement.msMatchesSelector;
+export var matches = documentElement.matches || documentElement.msMatchesSelector;
diff --git a/src/selector/var/pseudos.js b/src/selector/var/pseudos.js
index fdf288270..64fde1d1c 100644
--- a/src/selector/var/pseudos.js
+++ b/src/selector/var/pseudos.js
@@ -1,7 +1,7 @@
-import identifier from "./identifier.js";
-import attributes from "./attributes.js";
+import { identifier } from "./identifier.js";
+import { attributes } from "./attributes.js";
-export default ":(" + identifier + ")(?:\\((" +
+export var pseudos = ":(" + identifier + ")(?:\\((" +
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
// 1. quoted (capture 3; capture 4 or capture 5)
diff --git a/src/selector/var/rcomma.js b/src/selector/var/rcomma.js
index f5803f90f..acb651619 100644
--- a/src/selector/var/rcomma.js
+++ b/src/selector/var/rcomma.js
@@ -1,3 +1,3 @@
-import whitespace from "../../var/whitespace.js";
+import { whitespace } from "../../var/whitespace.js";
-export default new RegExp( "^" + whitespace + "*," + whitespace + "*" );
+export var rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" );
diff --git a/src/selector/var/rdescend.js b/src/selector/var/rdescend.js
index bab600901..6a4cd8885 100644
--- a/src/selector/var/rdescend.js
+++ b/src/selector/var/rdescend.js
@@ -1,3 +1,3 @@
-import whitespace from "../../var/whitespace.js";
+import { whitespace } from "../../var/whitespace.js";
-export default new RegExp( whitespace + "|>" );
+export var rdescend = new RegExp( whitespace + "|>" );
diff --git a/src/selector/var/rleadingCombinator.js b/src/selector/var/rleadingCombinator.js
index f802dc8c0..c620dc914 100644
--- a/src/selector/var/rleadingCombinator.js
+++ b/src/selector/var/rleadingCombinator.js
@@ -1,4 +1,4 @@
-import whitespace from "../../var/whitespace.js";
+import { whitespace } from "../../var/whitespace.js";
-export default new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" +
- whitespace + "*" );
+export var rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" +
+ whitespace + ")" + whitespace + "*" );
diff --git a/src/selector/var/rpseudo.js b/src/selector/var/rpseudo.js
index 9ed943a5f..bcf869304 100644
--- a/src/selector/var/rpseudo.js
+++ b/src/selector/var/rpseudo.js
@@ -1,3 +1,3 @@
-import pseudos from "./pseudos.js";
+import { pseudos } from "./pseudos.js";
-export default new RegExp( pseudos );
+export var rpseudo = new RegExp( pseudos );
diff --git a/src/selector/var/rsibling.js b/src/selector/var/rsibling.js
index 9aa815895..e80fcf91c 100644
--- a/src/selector/var/rsibling.js
+++ b/src/selector/var/rsibling.js
@@ -1 +1 @@
-export default /[+~]/;
+export var rsibling = /[+~]/;