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

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 22 May 2008 16:11:30 +0200
Message-ID: <48357F12.1020208@lachy.id.au>
To: Anne van Kesteren <annevk@opera.com>
Cc: "Web API WG (public)" <public-webapi@w3.org>

Anne van Kesteren wrote:
> 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.

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.

Lachlan Hunt - Opera Software
Received on Thursday, 22 May 2008 14:12:11 UTC

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