W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Re: [IndexedDB] Problems unprefixing IndexedDB

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 09 Aug 2012 22:44:48 -0400
Message-ID: <502475A0.70104@mit.edu>
To: public-webapps@w3.org
On 8/9/12 10:35 PM, Boris Zbarsky wrote:
> It's pretty unclear.  Consider this testcase:
>
>    <script>
>      var open;
>      alert(open);
>    </script>
>
> and observe that it does not alert undefined in Safari, Opera, or
> Chrome, though it does so in Gecko.

One other note.  This testcase:

   <script>
     alert(open);
     function open() {
     }
   </script>

interoperably alerts the user-defined function in Opera, Gecko, 
WebKit+JSC, WebKit+V8.  I _think_ the var spec change was to align the 
behavior of "var" with that of "function", though I could be wrong.

-Boris
Received on Friday, 10 August 2012 02:45:17 GMT

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