W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-syntax] Preserved vs. non-preserved tokens.

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Fri, 01 Feb 2013 00:50:38 +0100
Message-ID: <510B034E.5030408@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Le 31/01/2013 22:28, Tab Atkins Jr. a écrit :
> Never mind, I've made "consume a primitive" sometimes trigger a parse
> error and return nothing, and adjusted all the states to account for
> that.  The bad tokens are ), ], }, cdo, cdc, bad-url, and bad-string.

Now a non-preserved token in an at-rule prelude makes the whole at-rule 
invalid/ignored. Isn’t that incompatible with having any error recovery 
in preludes? For example I think that syntax errors in a comma-separated 
media query list makes one query invalid, with recovery at the next comma.

Test case:

data:text/html,<style>@media],screen{body{background:green

-- 
Simon Sapin
Received on Thursday, 31 January 2013 23:51:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT