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: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 23 Jul 2013 16:15:30 +1000
Message-ID: <51EE1F82.2020406@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
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>
Boris Zbarsky wrote:
> Thanks!
>
> The example for [NewObject] is wrong: getElementsByTagName is allowed to
> return an existing list. I suggest using createElement as an example
> instead.

OK, wasn't aware of that behaviour; changed.
Received on Tuesday, 23 July 2013 06:16:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC