<?xml version="not-even-close"?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!-- a test input for HtmlLexer -->

<html>
<head>
<title>Test File For HtmlLexer &amp; HtmlParser</title>
<link rel=stylesheet type="text/css" src=foo/bar.css />
<body
 bgcolor=white
 linkcolor = "blue"
 onload="document.writeln(
  &quot;&lt;p&gt;properly escaped code in a handler&lt;/p&gt;&quot;);"
>

<script type="text/javascript"><!--

document.writeln("<p>Some initialization code in global context</p>");

--></script>

<script type="text/javascript">
// hi there
document.writeln("<p>More initialization</p>");
</script>

<div id=clickydiv onclick="handleClicky(event)"
 ondblclick=this.onclick(event);return(false)>
Clicky
</div>

<input id=foo>
<gxp:attr name="onchange">alert("&lt;b&gt;hi&lt;/b&gt;");</gxp:attr>
</input>

<pre>&lt;div id=notarealtag onclick=notcode()&gt;</pre>

<!-- some tokenization corner cases -->

< notatag <atag/>

</ notatag> </redundantlyclosed/>

<messyattributes a=b=c d="e"f=g h =i j= k l = m checked n="o"/>

< < < all in one text block > > >

<xmp>Make sure that <!-- comments don't obscure the xmp close</xmp>

<% # some php code here
write("<pre>$horriblySyntacticConstruct1</pre>\n\n");
%>

<script type="text/javascript"><!--
alert("hello world");
// --></script>

<script>/* </script> */alert('hi');</script>
<script><!--/* </script> */alert('hi');--></script>

<xmp style=color:blue><!--/* </xmp> */alert('hi');--></xmp>

<style><!-- p { contentf: '</style>' } --></style>

<style>Foo<!-- > </style> --></style>

<textarea><!-- Zoicks </textarea>--></textarea>

<!-- An escaping text span start may share its U+002D HYPHEN-MINUS characters
   - with its corresponding escaping text span end. -->
<script><!--></script>
<script><!---></script>
<script><!----></script>

</body>
</html>

<![CDATA[ No such thing as a CDATA> section in HTML ]]>
<script>a<b</script>

<img src=foo.gif /><a href=><a href=/>

<span title=malformed attribs' do=don't id=foo checked onclick="a<b">Bar</span>
