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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25602

            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

Hi,

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
comment."

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

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

<head>
<meta charset="utf-8" />
<title>Test</title>
<!--
<style>
.block--element {
color : #000;
}</style>
-->

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

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

</html>

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,
Nicolas

-- 
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.3.1 : Wednesday, 7 January 2015 15:17:56 UTC