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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 22 Jun 2012 16:21:29 +1000
Message-ID: <4FE40EE9.3080404@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: public-script-coord@w3.org
Cameron McCormack:
>> I think the latter is already forbidden. In #idl-attributes it says:
>> The type of the attribute MUST NOT be a sequence type or nullable
>> sequence type, and it MUST NOT be a union type if one of its member
>> types (or one of its member types’ member types, and so on) is a
>> sequence type or nullable sequence type.

Boris Zbarsky:
> Should this also forbid unions containing dictionaries, presumably? (And
> similar for exception fields.)

It should, and should do so now:


Received on Friday, 22 June 2012 06:22:04 UTC

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