W3C home > Mailing lists > Public > www-style@w3.org > April 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Fri, 13 Apr 2012 12:47:10 +0200
Message-ID: <4F88042E.1000205@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT