1<?xml version="not-even-close"?>
2
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<!-- a test input for HtmlLexer -->
6
7<html>
8<head>
9<title>Test File For HtmlLexer &amp; HtmlParser</title>
10<link rel=stylesheet type="text/css" src=foo/bar.css />
11<body
12 bgcolor=white
13 linkcolor = "blue"
14 onload="document.writeln(
15  &quot;&lt;p&gt;properly escaped code in a handler&lt;/p&gt;&quot;);"
16>
17
18<script type="text/javascript"><!--
19
20document.writeln("<p>Some initialization code in global context</p>");
21
22--></script>
23
24<script type="text/javascript">
25// hi there
26document.writeln("<p>More initialization</p>");
27</script>
28
29<div id=clickydiv onclick="handleClicky(event)"
30 ondblclick=this.onclick(event);return(false)>
31Clicky
32</div>
33
34<input id=foo>
35<gxp:attr name="onchange">alert("&lt;b&gt;hi&lt;/b&gt;");</gxp:attr>
36</input>
37
38<pre>&lt;div id=notarealtag onclick=notcode()&gt;</pre>
39
40<!-- some tokenization corner cases -->
41
42< notatag <atag/>
43
44</ notatag> </redundantlyclosed/>
45
46<messyattributes a=b=c d="e"f=g h =i j= k l = m checked n="o"/>
47
48< < < all in one text block > > >
49
50<xmp>Make sure that <!-- comments don't obscure the xmp close</xmp>
51
52<% # some php code here
53write("<pre>$horriblySyntacticConstruct1</pre>\n\n");
54%>
55
56<script type="text/javascript"><!--
57alert("hello world");
58// --></script>
59
60<script>/* </script> */alert('hi');</script>
61<script><!--/* </script> */alert('hi');--></script>
62
63<xmp style=color:blue><!--/* </xmp> */alert('hi');--></xmp>
64
65<style><!-- p { contentf: '</style>' } --></style>
66
67<style>Foo<!-- > </style> --></style>
68
69<textarea><!-- Zoicks </textarea>--></textarea>
70
71<!-- An escaping text span start may share its U+002D HYPHEN-MINUS characters
72   - with its corresponding escaping text span end. -->
73<script><!--></script>
74<script><!---></script>
75<script><!----></script>
76
77</body>
78</html>
79
80<![CDATA[ No such thing as a CDATA> section in HTML ]]>
81<script>a<b</script>
82
83<img src=foo.gif /><a href=><a href=/>
84
85<span title=malformed attribs' do=don't id=foo checked onclick="a<b">Bar</span>
86