W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Why are dictionary-typed attributes not allowed?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 7 Jun 2012 16:18:16 +0200
Message-ID: <CADnb78ikwpeecpo-0NGAOsBh0xYv8iuecW=a_MBoWA_UGPRMQg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-script-coord@w3.org
On Thu, Jun 7, 2012 at 4:11 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> There are a bunch of differences (the properties don't have to be on
> prototypes, etc), but the real question you seem to be asking is why we have
> dictionaries in the first place, no?  Why do we?

We added them for object initialization. In particular for event
constructors (but they are used elsewhere too now):

new MouseEvent("click", {"clientX":23, "clientY":50})

Anne — Opera Software
Received on Thursday, 7 June 2012 14:18:46 UTC

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