The following HTML isn't highlighted correctly, validated with http://validator.w3.org/.
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Some Title</title>
<script language="JavaScript" type="text/javascript">// <![CDATA[
var x = "";
// ]]></script>
</head>
<body>
<div id="a">
<div id="b">
Some content.
</div>
</div>
</body>
</html>
The closing tag "</script>" shouldn't be highlighted as comment but as the end of the script.
As it is highlighted as comment the rest of the document is highlighted as JavaScript.
Best regards.
