W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: [WebIDL] [Null]/[Undefined] for readonly attributes

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 23 May 2008 15:44:24 +1000
To: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <20080523054424.GC18592@arc.mcc.id.au>

Anne van Kesteren:
>> Do you need to flag readonly attributes with [Null]/[Undefined] as well 
>> or does it suffice there that it is clear from the description of the  
>> attribute? I've assumed for now that it is clear from the definition  
>> what needs to be returned and that they do not need special 
>> annotations.

Lachlan Hunt:
> AIUI, [Null] and [Undefined] only affect how null and undefined values  
> that are assigned to a a DOMString attribute, or passed as a parameter,  
> are handled.  Since no value can be assigned to a read only attribute,  
> they don't apply anyway.

Right.  Unlike [NoNull] before, which also was a statement about what an
attribute/operation could return on getting.

Are there any properties/functions that need to return undefined in the
web platform?  (Where “web platform” == the kinds of objects commonly
exposed to script in web browsers, for lack of a better term.)

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 23 May 2008 05:45:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC