Issue metadata
Sign in to add a comment
|
Presence of SVG node breaks HTML-commented JavaScript
Reported by
badd...@gmail.com,
Sep 28 2016
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0 Steps to reproduce the problem: HTML with a div -> svg -> symbol -> title, text; div followed by script tag with javascript wrapped in HTML comments (bang-dash-dash) 1. load page in Chrome Version 54.0.2840.41 beta (64-bit) 2. javascript does not execute What is the expected behavior? javascript in the HTML comment should still execute What went wrong? JavaScript code inside HTML comment does not execute. Note that the following changes alleviate the issue: * adding another node in-between the div and script elements * reordering the child nodes in the symbol element (seriously!) * moving the script block before the div * removing the div wrapper * remove one child node in the symbol element Did this work before? Yes Chrome version 53 Chrome version: Version 54.0.2840.41 beta (64-bit) Channel: n/a OS Version: OS X 10.11 Flash Version: Shockwave Flash 23.0 r0 This reproducible sample HTML file was hacked down from a production web application which is demonstrating the behavior in Chrome beta 54. We originally caught this in 54.0.2840.34 beta and reproduced the issue in today's build.
,
Sep 29 2016
,
Sep 29 2016
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ligim...@chromium.org
, Sep 28 2016