[Webkit-unassigned] [Bug 17146] global variable declarations should shadow window properties from id'd elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 2 17:06:34 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17146





------- Comment #9 from ggaren at apple.com  2008-02-02 17:06 PDT -------
Even though Firefox doesn't allow var declarations to shadow pre-existing
window properties, it honors the "var projectname" declaration in this case
because it pretends that window.projectname doesn't exist.

Try this data URL in Firefox, to see what I mean:

data:text/html,<div id="bar"></div><script>alert("bar" in window);
alert(window.bar)</script>


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



More information about the webkit-unassigned mailing list