New issue
Advanced search Search tips

Issue 647333 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Wrong parsing a comment in iframe tags.

Reported by kamilkub...@gmail.com, Sep 15 2016

Issue description

Application: Google Chrome
Application version: 53.0.2785.116

Steps to reproduce:
(1) Code:
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
  </head>
  <body>
    <iframe src="data:text/plain;plain,Hello world!">
    <!--
      This is a comment.

      Example tags:
        <b>Test</b>
        </body>
        </html>

      The comment stay here.

      </iframe>
      <h2>Here should be the comment, too!</h2>

      <iframe src="data:text/plain;plain,What now?!">
    -->
    </iframe>
  </body>
</html>

Expected result:
Frame: Hello world!

Actual result:
First frame: Hello world!
Header tag (h2): Here should be the comment, too!
Second frame: What now?!

 
OK, it's not a bug.

"iframe can contain raw text only, per latest spec, so the "<!--" doesn't make it a comment. [...]"

https://bugzilla.mozilla.org/show_bug.cgi?id=1303103

Comment 2 by sgu...@chromium.org, Sep 16 2016

Status: WontFix (was: Unconfirmed)
thanks for the update!

Sign in to add a comment