[whatwg] [WHATWG] HTMLElement ids as global object properties

Boris Zbarsky bzbarsky at MIT.EDU
Mon Apr 11 14:02:05 PDT 2011


On 4/11/11 11:47 AM, Juriy Zaytsev wrote:
> There is a somewhat similar issue for Mozilla about named form controls
> shadowing members of HTMLFormElement interface, etc. —
> https://bugzilla.mozilla.org/show_bug.cgi?id=322488 I'd love to see that
> fixed too; not sure how compat-breaking that would be.

Too much.  Every browser implements that in all modes; lots of sites 
depend on it.

The details of whether it's ok to shadow methods on the form itself are 
up for grabs, possible.  But generally form.foo needs to work for at 
least things that don't shadow.

-Boris



More information about the whatwg mailing list