Skip to content

Instantly share code, notes, and snippets.

@DrFrankenstein
Created June 29, 2011 03:32
Show Gist options
  • Save DrFrankenstein/934ba4b95b593339fa6c to your computer and use it in GitHub Desktop.
Save DrFrankenstein/934ba4b95b593339fa6c to your computer and use it in GitHub Desktop.
Valid HTML document that no brower can parse.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd" [
<!ENTITY % FauxLatin 'INCLUDE'>
<!ENTITY % English 'IGNORE'>
<!ENTITY % French 'INCLUDE'>
]>
<html<head>
<title/Hello, World!/
</head<body<div>
<p/This is a paragraph./
<script type="text/javascript"><![CDATA[var foo = "Hello, World!";]]></script>
<ul>
<li>&{foo};</li>
<li>This is a list item.
<>And so is this.
<>And this.</>
</>
<?platform-specific-tag shape="circle">
Text in a circle?
<?/platform-specific-tag>
<![ %FauxLatin; [<p>Lorem ipsum <strong/dolor/ sit amet, <em/consectetur/ elit, sed do eiusmod tempor</>]]>
<![ %English; [<p>This should NOT be visible.</>]]>
<![ %French; [<p>Ceci devrait être visible.</>]]>
</div</></>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<div>
<p>This is a paragraph.</p>
<ul>
<li>Hello, World!</li>
<li>This is a list item.</li>
<li>And so is this.</li>
<li>And this.</li>
</ul>
<p>Lorem ipsum <strong>dolor</strong> sit amet, <em>consectetur</em> elit, sed do eiusmod tempor</p>
<p>Ceci devrait être visible.</p>
</div></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment