[Webkit-unassigned] [Bug 185243] iframe.contentWindow.document not accessible only on WebKit.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 3 09:10:19 PDT 2018


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

Ali Juma <ajuma at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ajuma at chromium.org

--- Comment #2 from Ali Juma <ajuma at chromium.org> ---
(In reply to Danyao Wang from comment #1)
> The problem doesn't seem to be with iframe.contentWindow.document. If I just
> add "var frm = document.getElementById('frm');" at the beginning, WebKit
> behaves identically to Chrome.
> 
> I don't think it's standard to be able to reference HTML element by ID as
> named variables in JavaScript. I could be wrong.

See bug 183087; the id becomes a global variable unless it gets shadowed by another explicitly declared global variable. So if adding "var frm = document.getElementById('frm');" changes behavior in this example, that sounds like a bug, since frm should already be referring to that element.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180503/7c861443/attachment.html>


More information about the webkit-unassigned mailing list