[whatwg] Plus Signs in Signed Integers

Ian Hickson ian at hixie.ch
Tue Jul 28 16:44:42 PDT 2009


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list