<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16807</bug_id>
          
          <creation_ts>2012-04-20 13:38:44 +0000</creation_ts>
          <short_desc>Consider supporting ending comments with --!&gt; in prescan. (The dashes can&apos;t overlap with &lt;!--, though.)</short_desc>
          <delta_ts>2012-09-16 03:42:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#documentEncoding</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66887</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-04-20 13:38:44 +0000</bug_when>
    <thetext>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 --!&gt; in prescan. (The dashes can&apos;t
overlap with &lt;!--, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66905</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-04-20 18:37:34 +0000</bug_when>
    <thetext>Unless there&apos;s a compelling reason to do so, I can&apos;t see my considering this for very long...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66907</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-20 19:30:05 +0000</bug_when>
    <thetext>It would make the prescan find charset declarations after &lt;!-- --!&gt; comments, which prevents scripts from running twice if the parser decides to change the encoding...

$ grep -aEihzZB2 &quot;&lt;\!-[-]([^-]|-[^-]|-[-][^&gt;])*-[-]\!&gt;.+text/html[[:space:]]*;[[:space:]]*charset[[:space:]]*=&quot; web200904 &gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70716</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:21:44 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18124 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73977</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-16 03:42:10 +0000</bug_when>
    <thetext>Yeah, that&apos;s not very compelling. :-)

The change to the spec would be relatively minor (just adding some more complexity to the &quot;A sequence of bytes starting with: 0x3C 0x21 0x2D 0x2D (ASCII &apos;&lt;!--&apos;)&quot; branch of the prescan algorithm), but it seems annoying to implement.

I&apos;m marking this WONTFIX. If you think I made the wrong call here, please reopen the bug. Especially if that&apos;s because you are implementing the algorithm and would rather support --!&gt; than not support it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>