W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

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

From: Kyle Huey <me@kylehuey.com>
Date: Fri, 1 Apr 2011 04:47:51 -0400
Message-ID: <AANLkTimLM9gYCOz1JzSW2BybAdAMgr2tNt0-xYAsSCHO@mail.gmail.com>
This is often called "global scope pollution" and is defined in the spec at
http://www.whatwg.org/specs/web-apps/current-work/#dom-window-nameditem.  I
believe that in Firefox 4 you should only be seeing this behavior in quirks
mode.

There is a bug on file at
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11960 to change the spec to
match the Gecko behavior, where this occurs in quirks mode only.

- Kyle

On Fri, Apr 1, 2011 at 3:26 AM, Alexandre Morgaut
<Alexandre.Morgaut at 4d.com>wrote:

>
> My biggest nightmare today is that recent browsers like Chrome, IE9, FF4
> generate a global variable from the id of each HTMLElement of the
> document...
>
>
Received on Friday, 1 April 2011 01:47:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT