On Wed, Aug 12, 2009 at 1:34 AM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, 12 Aug 2009, į~Y―į~_ģäŋ~Jåđģ wrote:<br>
><br>
> and, when passed value is undefined (e.g. `setItem("key")`), which<br>
> behavior will be correct?<br>
> On current implementation of browsers, I looked as follows.<br>
> - IE and Firefox raise error, (arguments number is incorrect)<br>
> - Webkit family persist it as string ("undefined")<br>
<br>
</div>I believe WebIDL says that a TypeError exception should be thrown, but it<br>
was not immediately obvious to me how to derive this from the spec.</blockquote><div><br></div>I believe this is the correct section of the spec to be looking at: <a href="http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString">http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString</a><div>
<br></div><div>If so, I think it's pretty clear that Safari's implementation is correct on this issue.</div></div>