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

[whatwg] Overriding functions in DOM Storage

From: Jeremy Orlow <jorlow@google.com>
Date: Thu, 11 Jun 2009 12:36:10 -0700
Message-ID: <5dd9e5c50906111236m3bb6fa94vf8da65c6ceb9b934@mail.gmail.com>
On Thu, Jun 11, 2009 at 11:52 AM, Ian Hickson <ian at hixie.ch> wrote:

> On Fri, 22 May 2009, Jeremy Orlow wrote:
> >
> > What is the behavior of the following supposed to be?
> >
> > window.sessionStorage.removeItem = function(x) { alert("Wait, this
> works?"); };
> > window.sessionStorage.removeItem('blah');
> > alert(typeof window.sessionStorage.removeItem);
>
> The behaviour of these things are defined in WebIDL:
>
>   http://dev.w3.org/2006/webapi/WebIDL/
>
> ...which, as defined today, consists of setting 'removeItem' to a function
> value that doesn't persist.


Apologies.  I have looked through that, but apparently not closely enough.
 The relevant portions of the HTML 5 spec + all the specs it depends on is a
lot to grok...hence the occasional question like this.

Thanks for the response!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090611/18069d87/attachment.htm>
Received on Thursday, 11 June 2009 12:36:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:13 UTC