W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [Bug 12111] New: spec for Storage object getItem(key) method does not match implementation behavior

From: Jeremy Orlow <jorlow@chromium.org>
Date: Mon, 13 Jun 2011 21:21:23 -0700
Message-ID: <BANLkTimJQ99aoDHaeVixDCHct6aTVcsG_A@mail.gmail.com>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: Ian Hickson <ian@hixie.ch>, Arthur Barstow <art.barstow@nokia.com>, public-webapps <public-webapps@w3.org>
On Sun, Jun 12, 2011 at 2:58 PM, Aryeh Gregor <Simetrical+w3c@gmail.com>wrote:

> On Sat, Jun 11, 2011 at 3:10 PM, Ian Hickson <ian@hixie.ch> wrote:
> > The particular issue in question isn't a particularly important one. The
> > spec describes a superset of implementations, and is a logical direction
> > for the spec to go. (Even within the process, there's no reason we
> > couldn't go to LC with it as is.) Implementations are the ultimate guide
> > here, when this issue bubbles up to the top of the priority list then
> > it'll get resolved one way or the other based on what they do and want.
>
> The spec does not describe a superset of implementations.  It
> describes behavior that contradicts what implementations actually do.
> For instance, if you set localStorage.foo = false, the spec requires
> localStorage.foo to return boolean false.  In implementations, it will
> return the string "false", which evaluates to boolean true.  It is not
> realistically going to be possible for implementations to change to
> what the spec currently says.
>
> Furthermore, we have some implementers from each of IE, Firefox, and
> Chrome saying that they don't intend to change to match the spec, and
> no implementers saying they intend to change to match the spec.  That
> should serve to indicate that the spec is broken and needs to change,
> process issues aside.
>
> I don't see what would take a few hours to change here.  Change all
> the relevant types from any to DOMString, remove all the stuff about
> structured clones, and let WebIDL do the work.  That's immediately
> much closer to browser behavior than the current spec.
>

I was about to write an email that said about the exact same thing.  Then I
saw Aryeh beat me to it.

J
Received on Tuesday, 14 June 2011 04:21:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT