Re: [css3-syntax] Reviving the spec, starting with the parser

Some properties accept <integer> values. For example: "2" is a valid 
integer, but "2.0" is not. However, both end up as NUMBER tokens with 
the same numeric value.

How does the parser distinguish them? Do the NUMBER tokens have 
additional meta-data?

Should we add an INTEGER token type instead? (This would mean that both 
token types would need to be checked wherever a <number> is accepted.)

-- 
Simon Sapin

Received on Friday, 13 April 2012 10:47:41 UTC