- From: Simon Sapin <simon.sapin@kozea.fr>
- Date: Sun, 20 Jan 2013 09:22:20 +0100
- To: "www-style@w3.org" <www-style@w3.org>
Hi, The /transform function whitespace/ flag changes the tokenizer so that `name (` is a single FUNCTION token instead of IDENT WS (. With `foo bar` however, the current ED’s state machine gives IDENT IDENT while it should give IDENT WS IDENT. > 3.3.14. Transform-function-whitespace state > > Consume the next input character. > > whitespace > Remain in this state. > U+0028 LEFT PARENTHESIS (() > Emit a function token with its value set to the identifer token's value. Switch to the data state. > anything else > Emit the ident token. Switch to the data state. Reconsume the current input character. In the "anything else" case, the current input character (`b` in the `foo bar` example) is correctly reconsumed. But at this point all the whitespace is already consumed, so a WS token will be missing. Possible fixes: * Go back/reconsume one more character (which will be a whitespace character) * Emit a WS token after the ident. -- Simon Sapin
Received on Sunday, 20 January 2013 08:22:43 UTC