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

Extended attributes on WebIDL typedefs need to be defined better, or just dropped

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 31 Aug 2012 17:15:47 -0400
Message-ID: <50412983.7070701@mit.edu>
To: public-script-coord@w3.org
All the WebIDL spec says right now about these is:

   Extended attributes can be given directly after the typedef keyword,
   and any such extended attributes will be taken to apply to constructs
   that use the typedef.

What does "constructs that use the typedef" mean?

If I have:

   typedef [Foo] Bar Baz;
   readonly attribute Baz something;

Is the [Foo] applied to the "something" or to the attribute?  Consider 
that, for example, [TreatNullAs] is an annotation on an attribute, and 
applies to the attribute, not an annotation on the type.

Honestly, I'm not sure I see what the use cases are for extended 
attributes here.  I propose that we just drop them.

Received on Friday, 31 August 2012 21:16:17 UTC

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