1description("Test the isEqualNode API.");
2
3debug("Test isEqualNode for DocumentType nodes.");
4var docTypeAllSet = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
5var docTypeAllSet2 = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
6var docTypeDifferentPublicID = document.implementation.createDocumentType('html', 'foo', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
7var docTypeDifferentSystemID = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'bar');
8
9shouldBeTrue("docTypeAllSet.isEqualNode(docTypeAllSet2)");
10shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentPublicID)");
11shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentSystemID)");
12
13var successfullyParsed = true;
14