summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/remove/017.xhtml
blob: dfc8ed8cc04eb522f978986ab1aa0e9dfeaad37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Removing iframe during drag and drop of text input selection</title>
<style type="text/css">
iframe
  {height:100px;
  width:300px;
  border:solid medium navy;}
</style>
</head>
<body ondragenter="event.preventDefault();document.querySelector('body').removeChild(document.querySelector('iframe'))" ondragover="return false" ondrop="document.querySelector('p').firstChild.nodeValue = (event.dataTransfer.getData('text/plain') == 'Drag me')?'PASS':'FAIL'">
<iframe src="helper-drag-me-input.xhtml">XHTML document</iframe>
<p>Drag selection above out of frame and drop it somewhere on the page. You should see word PASS once you drop it.</p>
</body>
</html>