blob: 101edeafb49282f9987bcf7a23ce4d1c2a32e878 (
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
|
<!doctype html>
<html>
<head>
<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; }
</style>
<script type="text/javascript">
window.onload = function () {
document.getElementsByTagName('span')[0].ondragstart = function (e) {
e.dataTransfer.setData('text','dummy text');
e.dataTransfer.effectAllowed = 'copy';
};
};
</script>
</head>
<body>
<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>
</body>
</html>
|