- From: <bugzilla@jessica.w3.org>
- Date: Wed, 13 Mar 2013 17:05:12 +0000
- To: public-script-coord@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21270
Bug ID: 21270
Summary: Introduce syntax for getters that keep returning the
same object
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: WebIDL
Assignee: cam@mcc.id.au
Reporter: annevk@annevk.nl
QA Contact: public-webapps-bugzilla@w3.org
CC: bzbarsky@mit.edu, mike@w3.org,
public-script-coord@w3.org
It would be nice if we could annotate e.g. Node.childNodes and
Element.attributes in IDL with something that indicates the same object will be
returned each time.
Gecko has [Constant] for this. We could maybe have something like NodeList* to
indicate it returns a pointer rather than a new object (in C terms...).
Alternative we could maybe say that this is the default and use "new NodeList"
for the other case, but then there are some getters that will sometimes return
the same object and sometimes a new one. Or maybe say that unless the prose
uses the word new, it must be taken as the same object will be returned each
time...
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 13 March 2013 17:05:14 UTC