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

Re: Why are dictionary-typed attributes not allowed?

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 22 Jun 2012 15:49:02 +1000
Message-ID: <4FE4074E.8000105@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: public-script-coord@w3.org
Cameron McCormack:
>> Because dictionaries are meant to be "pass by value" types, like
>> sequences. Because you would be returning a plain JS object – and a new
>> one each time at that – it wouldn't be suitable for use as an attribute
>> type.

Boris Zbarsky:
> I see.  It's perhaps worth having an informative note in the spec to
> this effect....

I've mentioned this now with wording like I have in #idl-sequence:

http://dev.w3.org/2006/webapi/WebIDL/#idl-dictionaries

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.539;r2=1.540;f=h
Received on Friday, 22 June 2012 05:49:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC