gecko/parser/htmlparser/tests/mochitest/test_html5_tree_construction.html

57 lines
2.0 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=366936
-->
<head>
<title>Test for Bug 366936</title>
<script type="text/javascript" src="/MochiKit/packed.js"></script>
<script type="text/javascript"
src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css"
href="/tests/SimpleTest/test.css" />
<script type="application/javascript;version=1.7"
src="parser_datreader.js"></script>
<script type="application/javascript"
src="html5_tree_construction_exceptions.js"></script>
<script class="testbody" type="application/javascript;version=1.7">
var parserDatFiles = ["html5lib_tree_dat1.txt",
"html5lib_tree_dat2.txt",
"html5lib_tree_dat3.txt",
"html5lib_tree_dat5.txt",
"html5lib_tree_dat6.txt",
"html5lib_tree_dat7.txt",
"html5lib_tree_dat8.txt",
"html5lib_tree_dat9.txt",
"html5lib_tree_dat10.txt",
"html5lib_tree_dat11.txt",
"html5lib_tree_dat12.txt",
"html5lib_tree_dat14.txt",
"regressions.txt"
];
netscape.security.PrivilegeManager.
enablePrivilege("UniversalXPConnect");
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
var gOriginalHtml5Pref = prefs.getBoolPref("html5.enable");
prefs.setBoolPref("html5.enable", true);
</script>
<script type="application/javascript;version=1.7"
src="parser_web_testrunner.js"></script>
</head>
<body>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=366936"
target="_blank">Mozilla Bug 366936</a>
<div id="content">
<iframe src="" id="testframe"></iframe>
</div>
See html5lib.googlecode.com for original test data<br>
<div id="display">
</div>
</body>
</html>