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

Re: Property enumeration for NodeList, etc.

From: Travis Leithead <Travis.Leithead@microsoft.com>
Date: Thu, 8 Sep 2011 00:25:32 +0000
To: Cameron McCormack <cam@mcc.id.au>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, "dflanagan@mozilla.com" <dflanagan@mozilla.com>
Message-ID: <9768D477C67135458BF978A45BCF9B3834CD4429@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
Results:
                                       Fx  Sa  Cr  Op  IE
  HTMLCollection
  indexed properties enumerated?       y   y   y   y  *y*
  named properties enumerated?         n   n   n   n   y
  own expando property enumerated?     y   y   y   y   y
  prototype properties enumerated?     y   y   y   y   y


In IE9, we treat the collection returned by getElementsByTagName somewhat special. For other HTMLCollections, e.g., document.scripts, we do enumerate indexed properties in this scenario.

In general I agree with the statement:

> Just going by the numbers, I think we should make indexed and named
> properties all be enumerated, unless we have compatibility reasons for
> doing otherwise: if someone knows that we definitely can't enumerate
> everything on certain objects (indexed properties on Window looks like
> a candidate), then I can invent an extended attribute to use to disable
> that.


-Travis
Received on Thursday, 8 September 2011 00:26:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC