W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: Spec for [Global] does not seem to be quite web-compatible, and none of the UAs are really compatible with each other

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 26 Dec 2013 07:33:45 -0800
Message-ID: <CABZUbM1-VvPqTTJZYRjipUtsZO7YKrcZY-RxiVsen0tyzAFd9A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
On 12/26/13, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 12/26/13 12:12 AM, Garrett Smith wrote:
>> Simple assignment to onload = { foo: "bar"; }; should be a
>> SyntaxError.
>
> Whyever would it be a syntaxerror?  Are you saying that's what the spec
> says (it doesn't, afaict) or that's what the spec should say (it
> shouldn't, because I'm 99.9% sure that's not web-compatible).
>

You can't have a semicolon in an object literal like that. Look: {
foo: "bar"; };

[...]
-- 
Garrett
@xkit
ChordCycles.com
garretts.github.io
Received on Thursday, 26 December 2013 15:34:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC