Skip to content

Commit

Permalink
Added IE bug about dispatchEvent() not calculating pageX or pageY.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 13, 2011
1 parent 219df4c commit 45a6e16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bugs/ie/dispatch-event-pagex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IE Bug: event.initMouseEvent() doesn't calculate pageX or pageY</title>
<script>
window.onload = function() {
var event = document.createEvent( "MouseEvents" );
event.initMouseEvent( "click", true, true, window,
0, 0, 0, 50, 100, false, false, false, false, 0, null );
alert( event.pageX );
};
</script>
</head>
<body>

<div id="elem"></div>

<p>IE 9 supports event.initMouseEvent() but does not set pageX or pageY based on the clientX and clientY parameters.</p>

</body>
</html>

0 comments on commit 45a6e16

Please sign in to comment.