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

On Fri, 1 Apr 2011, Kyle Huey wrote:
>
> 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.

Indeed. Right now I'm not changing the spec just because most browsers 
haven't changed the spec... I strongly encourage people who want this 
changed to advocate for it directly to the UA vendors who would need to 
update their code. If the browsers change the spec will obviously follow.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 15 June 2011 16:00:53 UTC