querySelectorAll fails on this query: [data-name="xxx"]:not([data-name] [data-name])
Reported by
nehue...@gmail.com,
Aug 25 2016
|
||||
Issue description
Chrome Version : Versión 49.0.2623.87 (64-bit)
URLs (if applicable) : ??
Other browsers tested: ??
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: ??
Firefox: ??
IE: ??
What steps will reproduce the problem?
(1) Open console
(2) run: document.querySelectorAll('[data-name="xxx"]:not([data-name] [data-name])')
(3)
What is the expected result?
See the elements that have attribute data-name="xxx" and has no parent with attribute name defined.
What happens instead?
Uncaught DOMException: Failed to execute ... is not a valid selector.
Please provide any additional information below. Attach a screenshot if
possible.
,
Aug 26 2016
,
Aug 26 2016
The issue can be seen from M35 35.0.1853.0 to latest canary. Hence can be considered a non regression issue
,
Aug 29 2016
,
Aug 29 2016
Same thing with:
- document.querySelectorAll('.foo:not(#foo .foo)')
- document.querySelectorAll('.foo:not(.foo .foo)')
- document.querySelectorAll('#foo:not(.foo .foo)')
- document.querySelectorAll('.foo:not(#foo > .foo)')
- document.querySelectorAll('.foo:not(.foo > .foo)')
- document.querySelectorAll('#foo:not(.foo > .foo)')
and other while inside of :not(...) has an nested rule.
,
Sep 15 2016
Edge also throws an error. Probably, the following one: https://drafts.csswg.org/selectors-4/#negation > Note: In Selectors Level 3, only a single simple selector was allowed as the argument to :not().
,
Sep 16 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by tkonch...@chromium.org
, Aug 26 2016Labels: -Pri-3 M-54 OS-Mac OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)