-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IE bug about dispatchEvent() not calculating pageX or pageY.
- Loading branch information
1 parent
219df4c
commit 45a6e16
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |