- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 3 Mar 2014 13:30:36 -0800
- To: Johannes Koch <koch@w3development.de>
- Cc: www-style list <www-style@w3.org>
On Mon, Mar 3, 2014 at 12:01 PM, Johannes Koch <koch@w3development.de> wrote: > Hi, > > when trying to implement a tokenizer according to the CSS Sybtax CR 20 > February 2014, I encountered the following problem. > > input: url("foo") > > From 4.3.1 we go to 4.3.3, consuming code points up to and including '(', > then to 4.3.5 > > 4. If the next input code point is a U+0022 QUOTATION MARK (") or > U+0027 APOSTROPHE (‘), then: > 1. Consume a string token with the current input code point as the > ending code point. > > Because the '"' has not yet been consumed, the current code point is still > '('. But 4.3.4 should be called with '"' as ending code point instead. > > So I propose to add 'consume it' after > U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE (‘) > in 4.3.5 step 4. Good catch, looks like that's a leftover from a previous organization of that section, when I *did* consume the quote character. I've fixed that, and slightly simplified the way you call "consume a string token" as well, so that if you don't specify an ending code point it uses the current input code point. > BTW, there is some strange markup: > <code class="css">), then: </code> Where? ~TJ
Received on Monday, 3 March 2014 21:31:25 UTC