Re: Property enumeration on forms

On Fri, Oct 23, 2009 at 3:23 PM, Maciej Stachowiak <> wrote:
> On Oct 23, 2009, at 3:03 PM, Jonas Sicking wrote:
>> I don't really feel strongly on the subject, however it appears that
>> most people on the public-script-coord felt that catch-alls were a
>> really bad idea and not something to be furthered. And you could argue
>> that adding enumerability to the catch-alls is furthering them.
> Although I think there is not the same degree of concern about array-like
> index accessors (indeed many conceded that it was a good pattern).


>> And since it appears that UAs are far from consistent, it's likely not
>> that much content out there that depend on the enumerability of
>> catch-alls.
> For catch-all getters and index getters on HTMLFormElement that may be true.
> But I suspect people do depend on enumeration for HTMLCollections and
> NodeLists. Though I'm not really sure what behavior they would depend on.
> What would your recommendation for form element be - that neither index nor
> named properties should be enumerable? Only index properties enumerable?

My recommendation is that only index properties are enumerable.

My initial email was intended just to speak for named catch-alls, not
in reference to index getter/setters at all.

/ Jonas

Received on Saturday, 24 October 2009 00:10:52 UTC