006.xhtml (743B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>Reload during link drag and drop roundtrip</title> 5 <script type="application/ecmascript"> 6 function checkLink(event) 7 {document.querySelector('a').firstChild.nodeValue = (event.dataTransfer.getData('text/uri-list').replace(/\r\n$/,'') == 'data:text/plain,1')?'PASS':'FAIL'} 8 </script> 9 </head> 10 <body> 11 <p><a href="data:text/plain,1" ondragstart="event.dataTransfer.effectAllowed = 'copy';window.location.reload()" ondragenter="event.preventDefault()" ondrop="checkLink(event)" ondragover="return false">Drag me</a></p> 12 <p>Drag link around page and then drag it back and drop on itself. You should see word PASS once you drop it.</p> 13 </body> 14 </html>