[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-unassigned
Subject:    [Webkit-unassigned] [Bug 108537] New: window[id] evaluates to iframe browsing context instead of ele
From:       bugzilla-daemon () webkit ! org
Date:       2013-01-31 23:02:41
Message-ID: bug-108537-2851 () https ! bugs ! webkit ! org/
[Download RAW message or body]

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@lists.webkit.org
        ReportedBy: mdempsky@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.
_______________________________________________
webkit-unassigned mailing list
webkit-unassigned@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-unassigned


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic