tor-browser

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

012.xhtml (827B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Changing object content during drag and drop of text input selection</title>
      5 <style type="text/css">
      6 object
      7  {height:100px;
      8  width:300px;
      9  border:solid medium navy;}
     10 </style>
     11 </head>
     12 <body ondragenter="event.preventDefault();document.querySelector('object').setAttribute('data','data:text/plain,Drop%20selection%20outside%20this%20frame')" ondragover="return false" ondrop="document.querySelector('p').firstChild.nodeValue = (event.dataTransfer.getData('text/plain') == 'Drag me')?'PASS':'FAIL'">
     13 <object type="application/xhtml+xml" data="helper-drag-me-input.xhtml">XHTML document</object>
     14 <p>Drag selection above out of frame and drop it somewhere on the page. You should see word PASS once you drop it.</p>
     15 </body>
     16 </html>