~ubuntu-branches/ubuntu/vivid/tidy/vivid-updates

« back to all changes in this revision

Viewing changes to test/input/in_427826.html

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-01-20 21:46:03 UTC
  • mfrom: (0.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120214603-oqicq5jwr1exrm55
Tags: 20080116cvs-2
* debian/control: build depends on xsltproc
  (closes: #461608)
* debian/tidy.preinst,postinst: add code to move old config file
  (closes: #461623)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
 
2
<html>
 
3
<head>
 
4
<title>[#427826] Script source needs escaping/CDATA section</title>
 
5
<script type="application/ecmascript">
 
6
<!--
 
7
  function isLessThan()
 
8
  {
 
9
    var a = 2, b = 3;
 
10
    if (a < b) alert("a less than b");
 
11
    return ( a < b );
 
12
  }
 
13
-->
 
14
</script>
 
15
<script type="text/javascript" language='JavaScript'>
 
16
  <!--
 
17
  alert("...");
 
18
  //-->
 
19
</script>
 
20
<script type="text/javascript" language='JavaScript'>
 
21
  function loop_de_loop()
 
22
  {
 
23
    for ( ix=0; ix < 5; ++ix )
 
24
    {
 
25
      alert( "Bob's yer uncle " + ix );
 
26
    }
 
27
  }
 
28
</script>
 
29
<script type="text/javascript" language='JavaScript'>
 
30
//<![CDATA[
 
31
  function round_again()
 
32
  {
 
33
    for ( ix=0; ix < 5; ++ix )
 
34
    {
 
35
      alert( "Shivver me timbers " + ix );
 
36
    }
 
37
  }
 
38
//]]>
 
39
</script>
 
40
</head>
 
41
<body onload="isLessThan()">
 
42
<p>If converted to XML/XHTML, the &lt; in the javascript source
 
43
above causes problems for XML tools.</p>
 
44
</body>
 
45
</html>
 
46