[Webkit-unassigned] [Bug 108537] New: window[id] evaluates to iframe browsing context instead of element itself
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 31 15:02:41 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=108537
Summary: window[id] evaluates to iframe browsing context
instead of element itself
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://shinobi.dempsky.org/~matthew/misc/chrome-iframe
-bug.html
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Frames
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mdempsky at google.com
If there's an iframe tag like
<iframe id='fr'>
then according to the HTML spec, window['fr'] should evaluate to the same thing as document.getElementById('fr').
But instead WebKit evaluates it the the iframe's browsing context. The HTML spec allows window['fr'] to evaluate to a browsing context named 'fr', but it says an iframe's browsing context should only be initialized by name attributes, not id attributes.
There's a demo URL at http://shinobi.dempsky.org/~matthew/misc/chrome-iframe-bug.html. This shows window['fr'] evaluates to a Window object on Chrome and Safari, but on Firefox it correctly evaluates to the HTMLIframeElement.
See also https://code.google.com/p/chromium/issues/detail?id=171873.
--
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