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

Re: [WebIDL] Would it make sense to add annotations for "creates a new object each time" and "always returns the same object"?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 23 Jul 2013 01:53:35 -0400
Message-ID: <51EE1A5F.7010406@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>
CC: Jonas Sicking <jonas@sicking.cc>, Ojan Vafai <ojan@chromium.org>, Glenn Adams <glenn@skynav.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On 7/23/13 1:37 AM, Cameron McCormack wrote:
> I added [SameObject] (on attributes) and [NewObject] (on operations)
> extended attributes.  I chose not to go with [Creator], since that could
> be confused with the "creator" keyword.
> http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.642;r2=1.643;f=h


The example for [NewObject] is wrong: getElementsByTagName is allowed to 
return an existing list.  I suggest using createElement as an example 

Received on Tuesday, 23 July 2013 05:54:07 UTC

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