[whatwg] Wrong sample code in 4.9.1 of Web Application 1.0 spec

Ian Hickson ian at hixie.ch
Fri Jun 2 13:36:59 PDT 2006


On Sat, 3 Jun 2006, Channy Yun wrote:
> 
> Only one line must be fixed.
> 
> ->storage.pageLoadCount += 1;
> +>storage.pageLoadCount = parseInt(storage.pageLoadCount) + 1;
> 
> It alway retruns string so it must be parsed to number.
> I am not sure whether there is bug from spec or firefox.

Bug in the spec. Thanks. Fixed. (It comes from when the spec stored things 
other than strings.)

-- 
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