W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Plus Signs in Signed Integers

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 14 Jul 2009 03:07:49 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907140105590.23663@hixie.dreamhostps.com>
On Thu, 18 Jun 2009, Smylers wrote:
>
> The algorithm for parsing signed integers does not allow an optional
> plus sign before positive integers; that is, parsing "+4" will return an
> error at step 8 of this algorithm:
> 
>   http://www.whatwg.org/html5#rules-for-parsing-integers
> 
> That is inconsistent with the algorithm for non-negative integers, which
> tolerates (and ignores) a leading plus sign (step 6):
> 
>   http://www.whatwg.org/html5#rules-for-parsing-non-negative-integers

I've made + be tolerated by the signed parser also.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 13 July 2009 20:07:49 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC