031.html (833B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Non-rendered body should still become current target element</title> 5 <style type="text/css"> 6 span { background: orange; display: inline-block; height: 200px; width: 200px; } 7 iframe { border: none; } 8 </style> 9 <script type="text/javascript"> 10 window.onload = function () { 11 document.getElementsByTagName('span')[0].ondragstart = function (e) { 12 e.dataTransfer.setData('text','dummy text'); 13 e.dataTransfer.effectAllowed = 'copy'; 14 }; 15 }; 16 </script> 17 </head> 18 <body> 19 20 <p>Drag the orange square onto the blue square and release it. Fail if text does not appear in the blue square.</p> 21 <p><span draggable="true"></span> <iframe height="200" width="200" src="031-1.html"></iframe></p> 22 <noscript><p>Enable JavaScript and reload</p></noscript> 23 24 </body> 25 </html>