W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 2 Jun 2006 20:36:59 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0606022035330.22058@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 2 June 2006 13:36:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC