[whatwg] Plus Signs in Signed Integers

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