Querying for html embed element in Chrome returns anonymous function
Reported by
sury...@gmail.com,
Apr 5 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Example URL: https://jsfiddle.net/qep543cb/ Steps to reproduce the problem: 1. open attached html in the browser 2. run below javascript in the browser console. var nodes = document.evaluate("/html[1]/body[1]/embed[1]", document, null, XPathResult.ANY_TYPE, null); var node = nodes.iterateNext(); console.log(node); 3. prints "function anonymous()" What is the expected behavior? embed element as in Firefox What went wrong? prints anonymous function instead of element. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 57.0.2987.133 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Apr 6 2017
just trying document.getElementById('embed1') on the console returns "function anonymous()"
,
Apr 6 2017
,
Apr 7 2017
Able to reproduce on Windows 10, Ubuntu 14.04 and Mac OS 10.12 using chrome stable M57-57.0.2987.133, This issue is not observed on latest Beta M58-58.0.3029.54, Hence performed reverse bisect provided information below. Bisect Information: ===================== Good build: 58.0.3010.0 Bad Build : 58.0.3012.0 You are probably looking for a change made after 450184 (known good), but no later than 450185 (first known bad). Change Log URL: https://chromium.googlesource.com/chromium/src/+log/ecf5359e680e3e250b3317827fb0b1c774721f3c..352682e3c9a3d4b9a6b2147e9b8573b449f71b37 From the above change log suspecting below change Review URL: https://codereview.chromium.org/2493343002 foolip@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner. Thanks!
,
Apr 7 2017
The report is that console.log(embedElement) prints "anonymous()" in the console, which was fixed by https://codereview.chromium.org/2493343002, since that made it no longer possible to call embed elements as functions. |
||||
►
Sign in to add a comment |
||||
Comment 1 by schenney@chromium.org
, Apr 5 2017