Fix Event#element accessing nonexistent tagName property (e.g. when element is a document)
This commit is contained in:
parent
9bcaa91560
commit
b75bc189ec
|
@ -1,3 +1,5 @@
|
|||
* Fix Event#element accessing inexistent tagName property (e.g. when element is a document). (kangax)
|
||||
|
||||
* Amended failing Element#identify test.
|
||||
|
||||
* Refactor unit tests. Unit tests are now dynamically generated from a JavaScript test file and optional HTML, JS and CSS fixtures. [Tobie Langel]
|
||||
|
|
|
@ -63,7 +63,7 @@ Event.Methods = (function() {
|
|||
|
||||
var node = event.target, type = event.type;
|
||||
|
||||
if (event.currentTarget) {
|
||||
if (event.currentTarget && event.currentTarget.tagName) {
|
||||
// Firefox screws up the "click" event when moving between radio buttons
|
||||
// via arrow keys. It also screws up the "load" and "error" events on images,
|
||||
// reporting the document as the target instead of the original image.
|
||||
|
|
Loading…
Reference in New Issue