[TIMOB-1379] webView iphone / simulator cannot handle Raphaeljs
update: invalid, see comments and http://github.com/DmitryBaranovskiy/raphael/issues/issue/185/">http://github.com/DmitryBaranovskiy/raphael/issues/issue/185/
Dear Appcelerator developers,
I've come across a weird webView issue:
For some reason the great raphaeljs cross browser svg library won't work in Titanium's webView, although it does not give any problems in the regular mobile safari (both in iphone simulator and on device)
To reproduce you can simply view the differences between
browsing to this official Raphael touch example in (mobile)
http://raphaeljs.com/touches.html">http://raphaeljs.com/touches.html and compare this to creating a webView in an empty Titanium mobile project which has the url property set to the same location:
Somehow the script breaks on the Titanium webView. When I try to include a local copy of the raphael.js source file in a Titanium project the jsLint won't continue because of too much warnings. Someone told me to edit the compiler.js source file to switch of the jsLint feature, but this won't change anything to the webView not being able to render it.
- Victor 2011-04-15
This ticket can be set to invalid, I could trace the weirdness back to an issue with the Raphaeljs source code. It tested with a regex for a particular 'Version/' in the navigator.userAgent property which is apparently changed/different than the mobile safari userAgent. More information about this non-titanium issue which also affects the simple 'add to homescreen' feature of mobile safari can be read here: http://github.com/DmitryBaranovskiy/raphael/issues#issue/185">http://github.com/DmitryBaranovskiy/raphael/issues#issue/185
- Lee Morris 2017-03-09 Closing ticket as invalid.