aboutsummaryrefslogtreecommitdiffstats
path: root/test/js/outerhtml.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/outerhtml.html')
-rw-r--r--test/js/outerhtml.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/js/outerhtml.html b/test/js/outerhtml.html
new file mode 100644
index 00000000..5c30bc52
--- /dev/null
+++ b/test/js/outerhtml.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<title>innerHTML test</title>
+<div id="test">Fail</div>
+<script>
+const div = document.getElementById("test");
+if (div.outerHTML != '<div id="test">Fail</div>')
+ throw new TypeError("invalid outerHTML " + div.outerHTML);
+div.textContent = "Success";
+</script>