32 lines
976 B
HTML
32 lines
976 B
HTML
<!DOCTYPE HTML>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
log = function(msg)
|
|
{
|
|
document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
|
|
}
|
|
|
|
onload = function()
|
|
{
|
|
if (document.doctype)
|
|
log("PASS: a doctype in a XML document is not ignored.");
|
|
else
|
|
log("FAIL: a doctype in a XML document is ignored.");
|
|
|
|
if (document.firstChild == document.doctype)
|
|
log("PASS: a doctype in an XML document is correctly set to the first child of the Document.");
|
|
else
|
|
log("FAIL: a doctype in an XML document is not correctly set to the first child of the Document.");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
This tests the behavior of a Doctype in an XML document.
|
|
<pre id="console"></pre>
|
|
</body>
|
|
</html>
|