jquery/jquery-mobile — Issue #2826: an error occurred with click event on svg element using "live" or "delegate"
Author: castersupermild
Created: 2011-10-25 02:55:13+00:00
State: open

an error occurred with click event on svg element using "live" or "delegate"

confirmed in Google Chrome 14.0.835.202 on Windows7, iPad2 on iOS5.0(9A334)

In case of RC2: line 3112

error messsage(Chrome): uncaught TypeError: Cannot call method 'toLowerCase' of undefined
error message(Mobile Safari): TypeError: 'undefined' is not an object

Maybe modified like this:

before

if ( ele.nodeName.toLowerCase() == "a" ) {

after

if ( ele.nodeName && ele.nodeName.toLowerCase() == "a" ) {

This workaround will fixes raising the error,
but I cannot still handle the click event.
I think it's a problem with jQuery.