Re: User properties (expando) on a form

Cameron McCormack:
> > I think it certainly makes sense to enumerate the property. The
> > basis for this in specifications would be that Web IDL (as yet
> > unfinished) requires the standard [[Put]] internal method on an
> > instance of HTMLFormElement, which would result in an enumerable
> > property being defined own the object.

Boris Zbarsky:
> Yes, but <form> has non-default enumeration behavior defined as
> well. The question is how the two should interact.

Nothing in Web IDL (or HTML5? I couldn’t see anything) requires non-
default enumeration behaviour.  (The ES5 spec doesn’t have any 
internal property that host objects can legally hook in to to change
how properties are enumerated.)  With recent changes to Web IDL, the
named and indexed properties that appear on an HTMLFormElement due to
the form elements are regular (enumerable) properties.

So the standard enumeration behaviour would result in them, as well as
the so-called expando properties, being reported.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Tuesday, 12 October 2010 08:36:31 UTC