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

[whatwg] Plus Signs in Signed Integers

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 28 Jul 2009 23:44:42 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907282343580.3189@hixie.dreamhostps.com>
On Tue, 14 Jul 2009, Jonas Sicking wrote:
> 
> What does IE do in these two examples? It appears webkit treats the
> first one as start=4 and the second as start=0.

In IE:

<ol start= "2"><li>TEST</ol> => 2
<ol start="+2"><li>TEST</ol> => 2
<ol start="-2"><li>TEST</ol> => -2
<ol start="H2"><li>TEST</ol> => 1
<ol start=".2"><li>TEST</ol> => 1
<ol start="#2"><li>TEST</ol> => 1

This matches the spec.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 28 July 2009 16:44:42 UTC

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