title: X and Y values in html5 drag events are inconsistent across browsers
body: <p>Check out the following jsFiddle in Chrome, Safari, and Firefox.  It should explain in good detail what I'm seeing.</p>
  
  <p>In summary, the drag and dragend events either do not have x and y values or have bizarre x and y values.</p>
  
  <p>(see code pasted below)
  <a href="http://jsfiddle.net/CgzV3/10/">http://jsfiddle.net/CgzV3/10/</a></p>
  
  <p>Are these bugs in the browsers?
  Can we expect that the browsers will eventually have reasonable x and y values in the drag and dragend events?
  Can we expect FireFox to eventually support offsetX and offsetY and the dragenter/dragleave/dragover/drop events?</p>
  
  <p>Thanks,
  Nate</p>
  
  <p>html:</p>
  
  <pre><code>&lt;aside draggable="true" id="dragme"&gt;
      Drag Me
  &lt;/aside&gt;
  
  &lt;aside droppable="true" id="drophere"&gt;
      Drop Here
  &lt;/aside&gt;
  
  &lt;div id="notes"&gt;
      Notes:
      &lt;ul&gt;
          &lt;li&gt;drag: In Chrome the x/y values for drag are reasonable as the drag is happening, 
              but then you get some crazy values in the last drag event when
              the element is dropped.&lt;/li&gt;
          &lt;li&gt;drag: In Firefox, there are no x/y values in drag events at all&lt;/li&gt;
          &lt;li&gt;drag: In Safari, the x/y values in drag events seem reasonable&lt;/li&gt;
          &lt;li&gt;dragend: In Chrome, the x/y values in dragend are just strange.  The screenX/screenY values seem to be almost accurate, except they are offset by the distance from the bottom left corner of the dragged element to the place where the dragged element was grabbed.&lt;/li&gt;
          &lt;li&gt;dragend: In Safari, the x/y values in the dragend seem to all be relevant to the outer window, not the iframe (which exists since this is inside jsFiddle.  This is different from the dragstart event, which sets all the x/y values (except for screenX/screenY) relative to the iframe&lt;/li&gt;
          &lt;li&gt;dragend: In Firefox, there is only screenX/y, and it seems right.&lt;/li&gt;
          &lt;li&gt;dragenter/dragover/dragleave/drop: Seem good in Chrome/Safari/FireFox except that FireFox does not have offsetX/Y values&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>function setCell(eventType, label, x, y) {
      var row = ['', 'dragstart', 'drag', 'dragend', '', 
                 'dragenter', 'dragover', 'dragleave', 
                 'drop'].indexOf(eventType);
      var cell = ['', 'client', 'page', 'screen', 'offset'].indexOf(label);
      var val = [x, y].join('/');
      document.getElementsByTagName('table')[0].rows[row].cells[cell].textContent = val; 
  }
  
  function setRow(evt) {
      var eventType = evt.type;
      setCell(eventType, 'client', evt.clientX, evt.clientY);
      setCell(eventType, 'page', evt.pageX, evt.pageY);
      setCell(eventType, 'screen', evt.screenX, evt.screenY);
      setCell(eventType, 'offset', evt.offsetX, evt.offsetY);
  }
  
  function dragstart(evt){
      // FF needs this
      evt.dataTransfer.setData("text/plain", "asd");
      setRow(evt);
  }
  
  function dragover(evt){
      evt.preventDefault();
      if (evt.stopPropagation) evt.stopPropagation();
      setRow(evt);
  }
  
  function drop(evt) {
      console.log(evt.stopPropagation);
      if(evt.preventDefault) evt.preventDefault();
      if (evt.stopPropagation) evt.stopPropagation();
      setRow(evt);
  }
  
  
  var dragme = document.getElementById('dragme'); 
  dragme.addEventListener('dragstart',dragstart,false); 
  dragme.addEventListener('drag',setRow,false); 
  dragme.addEventListener('dragend',setRow,false); 
  drophere.addEventListener('dragenter',setRow,false); 
  drophere.addEventListener('dragover',dragover,false); 
  drophere.addEventListener('dragleave',setRow,false); 
  drophere.addEventListener('drop',drop,false); 
  </code></pre>