about summary refs log tree commit diff stats
path: root/test/js/text.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/text.html')
-rw-r--r--test/js/text.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/js/text.html b/test/js/text.html
new file mode 100644
index 00000000..7d7bcfca
--- /dev/null
+++ b/test/js/text.html
@@ -0,0 +1,8 @@
+<!doctype html>
+<div id="succ">Fail</div>
+<script>
+(function() {
+	if (new Text("data").ownerDocument != document) return;
+	document.getElementById("succ").textContent = "Success"
+})()
+</script>