Sorry, but the reported errors are erroneous as you can see by looking
at the errors messages.

This is error-free:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>mytitle</title>
</head>
<body>
<!-- - -->
</body>
</html>

the validator reports:

Congratulations
The uploaded document was successfully checked as XHTML 1.0 Strict. This means 
that the resource in question identified itself as "XHTML 1.0 Strict" and that 
we successfully performed a formal validation using an SGML, HTML5 and/or XML 
Parser(s) (depending on the markup language used). 

However, changing the comment from this <!-- - --> to this <!-- -- -->
(now 2 dashes in the middle), results is this from the validator,
declaring as error was had been ok before the change (the missing color
makes it less obvious, better look in the validator directly):

Validation Output: 4 Errors

   1. Warning Line 8, Column 8: S separator in comment declaration
      <!-- -- -->

      This may happen if you have consecutive comments but did not close one of 
them properly. The proper syntax for comments is <!-- my comment -->.
   2. Error Line 10, Column 8: unterminated comment: found end of entity inside 
comment

      </html>

      Check that you are using a proper syntax for your comments, e.g: <!-- 
comment here -->. This error may appear if you forget the last "--" to close 
one comment, therefore including the rest of the content in your comment.
   3. Info Line 8, Column 9: comment started here
      <!-- -- -->

   4. Error Line 10, Column 8: end tag for "body" omitted, but OMITTAG NO was 
specified
      </html>

      You may have neglected to close an element, or perhaps you meant to 
"self-close" an element, that is, ending it with "/>" instead of ">".
   5. Info Line 7, Column 1: start tag was here
      <body>

   6. Error Line 10, Column 8: end tag for "html" omitted, but OMITTAG NO was 
specified
     </html>

      You may have neglected to close an element, or perhaps you meant to 
"self-close" an element, that is, ending it with "/>" instead of ">".
   7. Info Line 2, Column 1: start tag was here
      <html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:v="urn:schemas-microsoft-com:v…

   8. Error Line 8, Column 5: Comment not terminated <!--
      <!-- -- -->

-- 
Mozilla Firefox renders HTML comment incorrectly
https://bugs.launchpad.net/bugs/593255
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to