- From: Marc O'Morain <marc@marcomorain.com>
- Date: Sun, 30 Jun 2013 21:56:41 +0100
- To: www-style@w3.org
- Message-ID: <CAP2Q2S5T3=rbEtwk55YP6G9FvaNAkRTag2FLG+a+LR2xszQcVg@mail.gmail.com>
Hi there, I have been implementing a parser for the CSS spec at http://dev.w3.org/csswg/css-syntax/ and I have noticed 2 problems. I'm not sure if this is the correct place to report issues – if not, please let me know where I should send my comments. > 4.3.12 Consume a number > > 5. If the next 2 input characters are U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e) followed by a digit, then: This section omits the possibility of having a + or - minus before the exponent when tokenising... > 4.3.13 Convert a string to a number > > 6. An exponent sign: a single U+002B PLUS SIGN (+) or U+002D HYPHEN-MINUS (-), or the empty string. Let t be the number -1 if the sign is U+002D HYPHEN-MINUS (-); otherwise, let t be the number 1. But then point 6 above allows for a sign character when converting the string to a number. > 4.3.13 Convert a string to a number > > 7. An exponent: zero or more digits. If there is at least one digit, let i be the number formed by interpreting the digits as a base-10 integer; otherwise, let i be the number 0. > Return the number s·(i + f·10-d)·10te. In point 7 above I think it should read "let e be the number" in both cases, rather than 'i'. Thanks, Marc I have a unit test test that exposes the issue here: https://github.com/marcomorain/crush/blob/1848fef/test/main.c#L84
Received on Sunday, 30 June 2013 21:42:07 UTC