Chrome Version: 70.0.3538.102 (Official Build) (64-bit), 71.0.3578.21 (Official Build) dev (64-bit), 70.0.3538.80, 72.0.3612.0 (Official Build) canary (64-bit) (cohort: Clang-64)
OS: ChromeOS, Linux, Android, Windows
What steps will reproduce the problem?
(1) In an HTML file, create a child iframe that loads its HTML from the srcdoc attribute.
(2) The srcdoc HTML should be inside template literals and should contain some JavaScript inside <script> tags.
What is the expected result?
The iframe should load properly and the top level frame should not be affected by it.
What happens instead?
The end script tag inside the srcdoc template literal is confused as the end script tag of the top level frame, so everything after that is treated as HTML text.
I created a jsfiddle with and example: https://jsfiddle.net/naof48ut/
The problem is fixed if the end script tag of the srcdoc template literal has its forward slash escaped.
Comment 1 by tkent@chromium.org
, Nov 19Owner: tkent@chromium.org
Status: WontFix (was: Untriaged)