Index: LayoutTests/fast/forms/label/detached-document.html |
diff --git a/LayoutTests/fast/forms/label/detached-document.html b/LayoutTests/fast/forms/label/detached-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d2c6be085177a011d08ce9735ec7a5bfea126d92 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/label/detached-document.html |
@@ -0,0 +1,10 @@ |
+<!DOCTYPE html> |
+<label id="label"> |
+<script> |
+var label = document.getElementById("label"); |
+var doc = document.implementation.createDocument("", null); |
+doc.adoptNode(label); |
+var mouseEvent = document.createEvent('MouseEvent'); |
+mouseEvent.initMouseEvent("click", 56644); |
+label.dispatchEvent(mouseEvent) |
+</script> |