Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / detached-document.html
blobc0bdf00c3bb571bf24228cb7a8a7f72c2eb1edd5
1 <!DOCTYPE html>
2 <label id="label">
3 <script>
4 var label = document.getElementById("label");
5 var doc = document.implementation.createDocument("", null);
6 doc.adoptNode(label);
7 var mouseEvent = document.createEvent('MouseEvent');
8 mouseEvent.initMouseEvent("click", 56644);
9 label.dispatchEvent(mouseEvent)
10 </script>