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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 19 Jan 2013 13:54:39 +0100
Message-ID: <50FA978F.1020002@kozea.fr>
To: "www-style@w3.org" <www-style@w3.org>
Hi,

In §3.5. Tree Construction:

> preserved tokens
>
> The tokens that can appear in the tree are: ident, hash, string, url,
> delim, number, percentage, dimension, unicode-range, whitespace,
> comment, cdo, cdc, colon, semicolon, at-keyword, ], ), and }.
>
> Note: This means that the following tokens emitted by the tokenizer
> stage will not appear in the stylesheet object: function, bad-string,
> bad-url, [, (, {.


However, §3.5.14. Consume a primitive happily returns bad-string or 
bad-url tokens. They should be parse errors instead.

What about ], ), and }? Shouldn’t they be parse errors too?

-- 
Simon Sapin
Received on Saturday, 19 January 2013 12:55:02 GMT

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