summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/target-origin/004-1.html
blob: 94e43087434ec4d55dbff13b4bb9f56f4c9a1c54 (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>Data URI does not match absolute HTTP URL</title>
    <style type="text/css">
html, body { margin: 0; padding: 0; }
div { height: 100px; width: 100px; background: orange; }
    </style>
    <script type="text/javascript" src="../resources/crossorigin.sub.js"></script>
    <script type="text/javascript">
window.onload = function () {
  document.getElementsByTagName('div')[0].ondragstart = function (e) {
    e.dataTransfer.effectAllowed = 'copy';
    e.dataTransfer.setData('text','dummy text');
    e.dataTransfer.allowTargetOrigin('http://'+httpHostMain);
  };
};
    </script>
  </head>
  <body>

    <div draggable="true"></div>

  </body>
</html>