W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: User properties (expando) on a form

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 12 Oct 2010 21:35:43 +1300
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: public-html@w3.org
Message-ID: <20101012083543.GB9138@wok.mcc.id.au>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:15 GMT