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

Why are dictionary-typed attributes not allowed?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 07 Jun 2012 00:35:31 -0400
Message-ID: <4FD02F93.1060604@mit.edu>
To: public-script-coord@w3.org
WebIDL allows passing dictionaries to methods and returning dictionaries 
from methods.  Why are dictionary-typed attributes not allowed?

Or put another way, why is this not OK:

   attribute DictType foo;

while this is OK:

   void setFoo(DictType arg);
   DictType getFoo();

?

-Boris
Received on Thursday, 7 June 2012 04:36:00 UTC

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