File: out_427826.html

package info (click to toggle)
tidy 20080116cvs-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,296 kB
  • ctags: 3,259
  • sloc: ansic: 30,069; sh: 9,060; xml: 317; makefile: 41
file content (59 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (6)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
  <title>[#427826] Script source needs escaping/CDATA
  section</title>
  <script type="application/ecmascript">
  <![CDATA[
  <!--
  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'>
  //<![CDATA[
  <!--
  alert("...");
  //-->
  //]]>
  </script>
  <script type="text/javascript"
        language='JavaScript'>
  //<![CDATA[
  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>