To simplify further I changed the "comment" down to only 2 dashes: problem still exists for both firefox and the validator. this is the output:
<!-- -- -->
This is the code:
<!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 problem disappears for both firefox and validator if the "comment" is further shrunk to only 1 dash. The web page is then blank.
<!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>
More than a single dash gives an error and incorrect rendering; this can't be right.
To simplify further I changed the "comment" down to only 2 dashes: problem still exists for both firefox and the validator. this is the output:
<!-- -- -->
This is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3. org/TR/ xhtml1/ DTD/xhtml1- strict. dtd"> www.w3. org/1999/ xhtml" xmlns:v= "urn:schemas- microsoft- com:vml" > "Content- type" content= "text/html; charset= UTF-8" /> mytitle< /title>
<html xmlns="http://
<head>
<meta http-equiv=
<title>
</head>
<body>
<!-- -- -->
</body>
</html>
The problem disappears for both firefox and validator if the "comment" is further shrunk to only 1 dash. The web page is then blank.
This is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3. org/TR/ xhtml1/ DTD/xhtml1- strict. dtd"> www.w3. org/1999/ xhtml" xmlns:v= "urn:schemas- microsoft- com:vml" > "Content- type" content= "text/html; charset= UTF-8" /> mytitle< /title>
<html xmlns="http://
<head>
<meta http-equiv=
<title>
</head>
<body>
<!-- - -->
</body>
</html>
More than a single dash gives an error and incorrect rendering; this can't be right.