<?xml version="1.0"?>

<!-- Work done for Netscape.  Public domain. -->

<?xml-stylesheet type="text/css" href="../base.css" ?>
<?xml-stylesheet type="text/css" href="../basexml.css" ?>
<!DOCTYPE html
	PUBLIC
		"-//W3C//DTD XHTML 1.0 Strict//EN"
		"http://www.w3.org/TR/xhtml1/DTD/strict.dtd"
	[
		<!ENTITY myent "A test entity.">
	]
>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<title>DOM Test Suite: Interface DocumentType</title>
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="copyright" href="http://dbaron.org/legal.html" />
<link rel="stylesheet" type="text/css" href="../base.css" />
<script type="text/javascript" src="../base.js" />
<script type="text/javascript"><![CDATA[

function testDocumentType() {
	if ( ! ( canOutputWarn() &&  existsWarn("document") && existsWarn("document.doctype"))) {
		return;
	}

	dd = document.doctype;

	shouldNotBe("document.doctype", "null");
	shouldBe("document.doctype.name", "html");
	shouldNotBe("document.doctype.entities.length", "0");
	shouldBe("document.doctype.notations.length", "0");

	outTaggedText("header", "Tests finished, but I'm nowhere near done writing this page.");

}

]]></script>
</head>
<body>
<h1>DOM Test Suite: Interface <a href="http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-412266927">DocumentType</a></h1>

<div>
	<input type="button" onclick="testDocumentType()" value="test DocumentType" />
</div>

<div id="output">
<h2>Output:</h2>

</div>

<hr title="Beginning of Footer" />
<p>(Back to
<a href="../">DOM Testing Information</a>,
<a href="../../../">David Baron</a>)</p>
<p><a href="/" title="David Baron's Homepage">LDB</a>,
<a rev="made" href="mailto:dbaron@fas.harvard.edu" title="Send e-mail to David Baron">dbaron@fas.harvard.edu</a></p>

</body></html>
