Re: Why are dictionary-typed attributes not allowed?

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