- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>x</title>
<link href="s.css" type="text/css" rel="stylesheet" media="screen">
</HEAD>
<body>
<form action="x.aspx">
<div id="t">
<script language="javascript" type="text/javascript">
//<![CDATA[
function x(){removed}
//]]>
</script>
</div>
</form>
</body>
</HTML>
When I run the validator on the code below I get the error message
The end validation tag name program generated an error while executing: 98081601: cannot find the end of a comment; looking for '*/'
If I remove
//<![CDATA[
function x(){removed}
//]]>
the document is valid (according htmlvalidator
How can I make htmlvalidator accept the above code segment as valid?



