This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The regular expressions for "integer"[1] and "float"[2], as currently defined in the dev spec[3], do not allow negated base 10 numbers, nor negated scientific notation numbers with integer coefficients. I assume those cases should be allowed as well? Thanks, Kevin [1] integer = -?0([0-7]*|[Xx][0-9A-Fa-f]+)|[1-9][0-9]* [2] float = -?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+ [3] http://dev.w3.org/2006/webapi/WebIDL/#idl-grammar
Well spotted, thanks Kevin!