tidy-html5/regression_testing/cases/legacy-cases/case-427826@0.html
Jim Derry 5a1b65d089 Move the testing repository back into the Tidy codebase.
Automate testing of any PR's.
Updated README's explaining new processes.
2021-05-21 10:43:35 -04:00

47 lines
941 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>[#427826] Script source needs escaping/CDATA section</title>
<script type="application/ecmascript">
<!--
function isLessThan()
{
var a = 2, b = 3;
if (a < b) alert("a less than b");
return ( a < b );
}
-->
</script>
<script type="text/javascript" language='JavaScript'>
<!--
alert("...");
//-->
</script>
<script type="text/javascript" language='JavaScript'>
function loop_de_loop()
{
for ( ix=0; ix < 5; ++ix )
{
alert( "Bob's yer uncle " + ix );
}
}
</script>
<script type="text/javascript" language='JavaScript'>
//<![CDATA[
function round_again()
{
for ( ix=0; ix < 5; ++ix )
{
alert( "Shivver me timbers " + ix );
}
}
//]]>
</script>
</head>
<body onload="isLessThan()">
<p>If converted to XML/XHTML, the &lt; in the javascript source
above causes problems for XML tools.</p>
</body>
</html>