aboutsummaryrefslogtreecommitdiffstats
path: root/test/js/document.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/document.html')
-rw-r--r--test/js/document.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/js/document.html b/test/js/document.html
index 1020283c..10ecf17d 100644
--- a/test/js/document.html
+++ b/test/js/document.html
@@ -12,10 +12,11 @@ assertEquals(document.toString, document.getElementById("toString"));
document.toString.remove();
document.testtest = "hi";
assertEquals(Object.getOwnPropertyNames(document).toString(), "testtest,location,img2,img3,asdf");
-// the spec doesn't have HTMLDocument, but browsers do.
-//TODO: we'll probably have to implement HTMLDocument ourselves too
-// nonetheless.
-if (!window.HTMLDocument)
+/*
+ * Note: the spec says Document == HTMLDocument, but in other browsers
+ * this is not true.
+ */
+if (HTMLDocument == Document)
assertEquals(document.toString(), "[object Document]");
assertEquals(document, window.document);
assertEquals(document.implementation, document.implementation);