Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3953445
commit 8c2873f
Showing
1 changed file
with
7 additions
and
10 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
1 comment
on commit 8c2873f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. We have Event#element for that.
As per specs, Event#target can be any kind of NODE element and is thus not guaranteed to be an element. There’s no point in extending it in IE as we cannot guarantee that it will be an extended element in browsers which are spec compliant with regards to events but which do not fully implement the HTMLElement interface (Safari, notably).