This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18124 - Consider supporting ending comments with --!> in prescan. (The dashes can't overlap with <!--, though.)
Summary: Consider supporting ending comments with --!> in prescan. (The dashes can't o...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 17:21 UTC by contributor
Modified: 2012-09-18 12:12 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2012-07-18 17:21:41 UTC
This was was cloned from bug 16807 as part of operation convergence.
Originally filed: 2012-04-20 13:38:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-04-20 13:38:44 +0000 
--------------------------------------------------------------------------------
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html
Multipage: http://www.whatwg.org/C#documentEncoding
Complete: http://www.whatwg.org/c#documentEncoding

Comment:
Consider supporting ending comments with --!> in prescan. (The dashes can't
overlap with <!--, though.)

Posted from: 85.227.154.145 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.3; U; en) Presto/2.10.229 Version/11.62
================================================================================
 #1   Ian 'Hixie' Hickson                             2012-04-20 18:37:34 +0000 
--------------------------------------------------------------------------------
Unless there's a compelling reason to do so, I can't see my considering this for very long...
================================================================================
 #2   Simon Pieters                                   2012-04-20 19:30:05 +0000 
--------------------------------------------------------------------------------
It would make the prescan find charset declarations after <!-- --!> comments, which prevents scripts from running twice if the parser decides to change the encoding...

$ grep -aEihzZB2 "<\!-[-]([^-]|-[^-]|-[-][^>])*-[-]\!>.+text/html[[:space:]]*;[[:space:]]*charset[[:space:]]*=" web200904 > bang-comment-then-encoding.txt

Seems only two pages in this data set match, but they have an encoding decl before the comment as well.
================================================================================
Comment 1 Robin Berjon 2012-09-18 12:12:42 UTC
Same decision as https://www.w3.org/Bugs/Public/show_bug.cgi?id=16807