W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

[csswg-drafts] [selectors] querySelector() with quote and/or square bracket missing on right

From: Eric Willigers via GitHub <sysbot+gh@w3.org>
Date: Fri, 03 Nov 2017 17:35:48 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-271059644-1509730547-sysbot+gh@w3.org>
ewilligers has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] querySelector() with quote and/or square bracket missing on right ==
(From Chrome [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=779942))

The call
```
// double quote and square bracket on the right side was missing.
document.querySelector('meta[name="description');
```
succeeds on Chrome/Edge/Firefox and fails on Safari.

Does the spec specify which behavior is correct?

We should have a web platform test. Apart from a DOM [test](https://github.com/w3c/web-platform-tests/blob/master/dom/nodes/ParentNode-querySelector-All.html
), querySelector[All] doesn't appear to have tests.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1933 using your GitHub account
Received on Friday, 3 November 2017 17:35:50 UTC

This archive was generated by hypermail 2.3.1 : Friday, 3 November 2017 17:35:50 UTC