<div class="gmail_quote">On Thu, Jun 11, 2009 at 11:52 AM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, 22 May 2009, Jeremy Orlow wrote:<br>
><br>
> What is the behavior of the following supposed to be?<br>
><br>
> window.sessionStorage.removeItem = function(x) { alert("Wait, this works?"); };<br>
> window.sessionStorage.removeItem('blah');<br>
> alert(typeof window.sessionStorage.removeItem);<br>
<br>
</div>The behaviour of these things are defined in WebIDL:<br>
<br>
<a href="http://dev.w3.org/2006/webapi/WebIDL/" target="_blank">http://dev.w3.org/2006/webapi/WebIDL/</a><br>
<br>
...which, as defined today, consists of setting 'removeItem' to a function<br>
value that doesn't persist.</blockquote><div><br></div><div>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.</div>
<div><br></div><div>Thanks for the response!</div></div>