tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

021.xhtml (667B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Link drag and drop: events after drag is cancelled</title>
      5 <script type="application/ecmascript">
      6 function dragMe(event)
      7  {event.preventDefault();}
      8 function dropIt(event)
      9  {say('FAIL (no drop should occur after drag is cancelled)')}
     10 function say(it)
     11  {document.querySelector('pre').appendChild(document.createTextNode(it + '\n'));}
     12 </script>
     13 </head>
     14 <body dropzone="copy string:text/uri-list" ondrop="dropIt(event)">
     15 <p><a href="data:text/plain,1" ondrag="dragMe(event)">Try to drag me</a></p>
     16 <p>You should not be able to drag link above.</p>
     17 <pre/>
     18 </body>
     19 </html>