Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<title>Non-rendered body should still become current target element</title>
<style type="text/css">
span { background: orange; display: inline-block; height: 200px; width: 200px; }
iframe { border: none; }
<script type="text/javascript">
window.onload = function () {
document.getElementsByTagName('span')[0].ondragstart = function (e) {
e.dataTransfer.setData('text','dummy text');
e.dataTransfer.effectAllowed = 'copy';
<p>Drag the orange square onto the blue square and release it. Fail if text does not appear in the blue square.</p>
<p><span draggable="true"></span> <iframe height="200" width="200" src="031-1.html"></iframe></p>
<noscript><p>Enable JavaScript and reload</p></noscript>