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

Should restrictions on attribute types look at flattened member types of unions?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 19 Jun 2012 02:12:39 -0400
Message-ID: <4FE01857.6060502@mit.edu>
To: public-script-coord@w3.org
This is not valid WebIDL:

   attribute sequence<long> foo;

but this seems to be valid at the moment:

   attribute (sequence<long> or DOMString) foo;

why should we allow the latter if we don't allow the former?  Seems like 
it would be more consistent to forbid the latter...

-Boris
Received on Tuesday, 19 June 2012 06:13:09 UTC

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