File: case-427826%400.html

package info (click to toggle)
tidy-html5 2%3A5.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,668 kB
  • sloc: ansic: 43,061; ruby: 1,368; sh: 404; xml: 225; cpp: 30; makefile: 26
file content (46 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!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>