<?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>25602</bug_id>
          
          <creation_ts>2014-05-08 10:40:10 +0000</creation_ts>
          <short_desc>Double hyphens validation issue</short_desc>
          <delta_ts>2015-08-23 07:07:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicolas H.">dante3333</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105429</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas H.">dante3333</who>
    <bug_when>2014-05-08 10:40:10 +0000</bug_when>
    <thetext>Hi,

I&apos;ve had this message when trying to validate a file :  

&quot;Consecutive hyphens did not terminate a comment. -- is not permitted inside a comment, but e.g. - - is&quot;
with also 
&quot;The document is not mappable to XML 1.0 due to two consecutive hyphens in a comment.&quot;

To reproduce, put this HTML code in &quot;Direct input validation&quot; in the http://validator.w3.org/

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;fr&quot; class=&quot;no-js&quot;&gt;

&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;title&gt;Test&lt;/title&gt;
&lt;!--
&lt;style&gt;
.block--element {
color : #000;
}&lt;/style&gt;
--&gt;

&lt;/head&gt;
&lt;body role=&quot;document&quot; class=&quot;home&quot;&gt;

&lt;!--[if lte IE 8]&gt; &lt;div class=&quot;block--element&quot;&gt;blabla&lt;/div&gt; &lt;![endif]--&gt;

&lt;/html&gt;

It will provide two times the error mentionned above. 

It is problematic for people that are using BEM convention in CSS and conditionnal comments or simple comments.

(note that it is not breaking display, only validation)

I don&apos;t know what it could imply, is it possible to fix this annoying issue ?


Kind regards,
Nicolas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105631</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-05-11 10:07:21 +0000</bug_when>
    <thetext>That error message from the validator is required by the HTML spec. The HTML spec doesn&apos;t permit comments to contain two consecutive hyphens:

http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#comments

So to ask for that requirement to changed you&apos;d need to file a bug against the HTML spec:

https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WHATWG&amp;component=HTML</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107029</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas H.">dante3333</who>
    <bug_when>2014-05-30 14:08:24 +0000</bug_when>
    <thetext>Hi Michael,

ok, I&apos;ve reported it for HTML spec.

Thanks for your help and your time. :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>