Closed
Description
Dear Marcj,
I would like to report the following issue I am experiencing using the release available here on GitHub.
When I run ElementQueries.init(), I get the following error:
Uncaught ReferenceError: attrs is not defined
at extractQuery (vendor3-a0c724437a.js:13836)
at readRules (vendor3-a0c724437a.js:13864)
at ElementQueries.init (vendor3-a0c724437a.js:13888)
at Function.2.ElementQueries.init (vendor3-a0c724437a.js:13968)
at <anonymous>:1:19
I am using the following simple stylesheet (which appears to be correct):
form[min-width~="400px"] div {
background-color: red;
}
As I can see, it seems that the first regex used in extractQuery cannot find a match for the rule I've pasted (i.e. var match equals null) thus throwing the error above.
But the same regex with the same css rule seems to work here: https://regex101.com/
Perhaps you could give me some advice on how to solve this problem.
Many thanks,
Cristian
EDIT:
ElementQueries 0.4.0 from https://cdnjs.cloudflare.com/ajax/libs/css-element-queries/0.4.0/ElementQueries.js works fine.
Metadata
Metadata
Assignees
Labels
No labels