summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/remove/022-1.html
blob: fe65c60453682b8b9ad7a966f28d40501e3df062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<title>Removing drop targetted document before the queue is processed</title>
<style>
  html, body, div {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: blue;
  }
</style>
<script type="text/javascript">
window.onload = function () {
        var blue = document.getElementsByTagName('div')[0];
        blue.ondragenter = blue.ondragover = blue.ondrop = function (e) {
                e.preventDefault();
        };
        window.addEventListener('message',function (){
                var xhr = new XMLHttpRequest();
                xhr.open('GET','/common/blank.html?pipe=trickle(d5)',false);
                xhr.send(null); //should not end within the lifetime of this document
        },false);
};
</script>
<div></div>
<noscript><p>Enable JavaScript and reload</p></noscript>