New issue
Advanced search Search tips

Issue 651176 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 640923
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Presence of SVG node breaks HTML-commented JavaScript

Reported by badd...@gmail.com, Sep 28 2016

Issue description

UserAgent: 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.
 
test-chrome-bug.html
429 bytes View Download
Labels: Needs-Bisect

Comment 2 by f...@opera.com, Sep 29 2016

Components: -Blink Blink>HTML>Parser
Mergedinto: 640923
Status: Duplicate (was: Unconfirmed)

Comment 3 by f...@opera.com, Sep 29 2016

Labels: -Needs-Bisect

Sign in to add a comment