diff options
Diffstat (limited to 'test/js/document.html')
| -rw-r--r-- | test/js/document.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/js/document.html b/test/js/document.html new file mode 100644 index 00000000..26dfa528 --- /dev/null +++ b/test/js/document.html @@ -0,0 +1,11 @@ +<!doctype html> +<title>Window test</title> +<div id="abc">Fail</div> +<script> +(function() { + if (document.toString() !== "[object Document]") return; + if (document !== window.document) return; + if (document.implementation !== document.implementation) return; + document.getElementById("abc").textContent = "Success"; +})() +</script> |