jquery/jquery-mobile — Issue #3087: JQM 1.0rc3 + google Maps streetview - JS errors in JQM when hovering map links in dialog
Author: chrisben
Created: 2011-11-17 10:33:06+00:00
State: open

To reproduce and understand this issue:
* open: http://jsfiddle.net/5Ezkm/3/
* open your JS debug window (Ctrl+Shift+J in Chrome)
* hover the mouse over the streetview panel, especially above the control links (when the cursor becomes a pointing finger). You should not no JS error
* now click on "Open dialog", you will see the same streetview map.
* now hover the mouse over this new streetview panel. When the mouse hovers the google map controls (zoom, orientation..) you'll get a JS error:

Uncaught TypeError: Object # has no method 'split'

This error is new in rc3 because the code that triggers this error (jquery.mobile-1.0rc3.js:6221) is new compared to rc2.
The error lies in JQM code and not google maps code.
Maybe element.className is not always a string then? It seems to be a SVGAnimatedString here, whatever that is.

This problem only seem to happen with google maps streetview ('maps' is fine) and within a dialog window.

Not a blocking issue as it doesn't break the whole javascript of the page, though I wanted to point that out as it may lead to further problems down the line.