W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2014

[Bug 25602] New: Double hyphens

From: <bugzilla@jessica.w3.org>
Date: Thu, 08 May 2014 10:40:10 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-25602-169@http.www.w3.org/Bugs/Public/>

            Bug ID: 25602
           Summary: Double hyphens
           Product: Validator
           Version: HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5
          Assignee: mike+validator@w3.org
          Reporter: dante3333@gmail.com
        QA Contact: www-validator-cvs@w3.org


I've had this message when trying to validate a file :  

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

To reproduce, put this HTML code in "Direct input validation" in the

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" class="no-js">

<meta charset="utf-8" />
.block--element {
color : #000;

<body role="document" class="home">

<!--[if lte IE 8]> <div class="block--element">blabla</div> <![endif]-->


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't know what it could imply, is it possible to fix this annoying issue ?

Kind regards,

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 8 May 2014 10:40:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:03:24 UTC