[Webkit-unassigned] [Bug 33644] Aliasing javascript globals to elements with matching name/id is inconsistent with Firefox and slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 15 08:15:49 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=33644





--- Comment #7 from Darin Adler <darin at apple.com>  2010-01-15 08:15:45 PST ---
(In reply to comment #4)
> (In reply to comment #2)
> > (In reply to comment #0)
> > If we wanted to match the Firefox behavior in this case, we would need to make
> > substantial changes to match other Firefox quirks as well. For example, Firefox
> > treats "foo = x", "foo", and "window.foo" as referring to different variables.
> > 
> > All of these behaviors are odd. But what spec are you referring to? I don't
> > think there is any spec that governs this specific quirk of the global object.
> 
> I mean aliasing global variables to elements in the DOM with matching name/id,
> not any of the other Firefox quirks (which are internal to JS).

I think what Geoff is referring to is the fact that if you change the global
variable to element aliasing, then you'll commonly discover sites that work in
IE and WebKit-based browsers due to that, and that work in Firefox due to the
other Firefox quirks. If you change only the single factor, those sites no
longer work.

I think we learned this during an earlier experiment with changing this
behavior.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list