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

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

Thanks!

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

-Boris

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