[Webkit-unassigned] [Bug 142167] querySelectorAll throws SyntaxError for attribute selector with missing ']'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 27 22:56:07 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=142167

Emilio Cobos Álvarez (:emilio) <emilio at crisal.io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emilio at crisal.io

--- Comment #2 from Emilio Cobos Álvarez (:emilio) <emilio at crisal.io> ---
FWIW, spec text:

https://drafts.csswg.org/css-syntax/#parse-error:

> Certain points in the parsing algorithm are said to be parse errors. The error handling for parse errors is well-defined: user agents must either act as described below when encountering such problems, or must abort processing at the first error that they encounter for which they do not wish to apply the rules described below.

https://drafts.csswg.org/css-syntax/#consume-simple-block:

> <EOF-token>
>   This is a parse error. Return the block.

(So the block is returned, and thus auto-closed)

Same happens on `data:text/html,<style>:root { background: rgb(0, 255, 0`, where all browsers do the right thing.

I guess Safari is not technically non-compliant, in the sense that they're technically "abort processing at the first error that they encounter for which they do not wish to apply the rules described below", but...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190228/e5f19067/attachment.html>


More information about the webkit-unassigned mailing list