1<?xml version="1.0" encoding="iso-8859-1"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5<html xmlns="http://www.w3.org/1999/xhtml">
6<head>
7  <title>[#427826] Script source needs escaping/CDATA
8  section</title>
9  <script type="application/ecmascript">
10  <![CDATA[
11  <!--
12  function isLessThan()
13  {
14    var a = 2, b = 3;
15    if (a < b) alert("a less than b");
16    return ( a < b );
17  }
18  -->
19  ]]>
20  </script>
21  <script type="text/javascript"
22        language='JavaScript'>
23  //<![CDATA[
24  <!--
25  alert("...");
26  //-->
27  //]]>
28  </script>
29  <script type="text/javascript"
30        language='JavaScript'>
31  //<![CDATA[
32  function loop_de_loop()
33  {
34    for ( ix=0; ix < 5; ++ix )
35    {
36      alert( "Bob's yer uncle " + ix );
37    }
38  }
39  //]]>
40  </script>
41  <script type="text/javascript"
42        language='JavaScript'>
43  //<![CDATA[
44  function round_again()
45  {
46    for ( ix=0; ix < 5; ++ix )
47    {
48      alert( "Shivver me timbers " + ix );
49    }
50  }
51  //]]>
52  </script>
53</head>
54
55<body onload="isLessThan()">
56  <p>If converted to XML/XHTML, the &lt; in the javascript source
57  above causes problems for XML tools.</p>
58</body>
59</html>
60