diff options
author | fecore1 <89127124+fecore1@users.noreply.github.com> | 2021-09-23 19:35:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 13:35:18 +0200 |
commit | efadfe991a5c287af561a9326bf1427d726c91c1 (patch) | |
tree | a8d28d325f3b40a6bac0637ccfa10ac5974dbdf7 /src/selector | |
parent | 175db73ec7938e774d9e93d3afdfb35a24466b47 (diff) | |
download | jquery-efadfe991a5c287af561a9326bf1427d726c91c1.tar.gz jquery-efadfe991a5c287af561a9326bf1427d726c91c1.zip |
CSS: Trim whitespace surrounding CSS Custom Properties values
The spec has recently changed and CSS Custom Properties values are trimmed now.
This change makes jQuery polyfill that new behavior for all browsers.
Ref w3c/csswg-drafts#774
Fixes gh-4926
Closes gh-4930
Diffstat (limited to 'src/selector')
-rw-r--r-- | src/selector/rbuggyQSA.js | 2 | ||||
-rw-r--r-- | src/selector/var/whitespace.js | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/selector/rbuggyQSA.js b/src/selector/rbuggyQSA.js index 7a6210733..bae05398f 100644 --- a/src/selector/rbuggyQSA.js +++ b/src/selector/rbuggyQSA.js @@ -1,5 +1,5 @@ import isIE from "../var/isIE.js"; -import whitespace from "./var/whitespace.js"; +import whitespace from "../var/whitespace.js"; var rbuggyQSA = isIE && new RegExp( diff --git a/src/selector/var/whitespace.js b/src/selector/var/whitespace.js deleted file mode 100644 index dcac814c7..000000000 --- a/src/selector/var/whitespace.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://www.w3.org/TR/css3-selectors/#whitespace -export default "[\\x20\\t\\r\\n\\f]"; |