Titanium webview bug or "feature"? Numbers converted to telephone links
- by Alan Neal
I can't stop Titanium's webview from converting numbers to telephone links.
For instance, let's say I programmatically set the innerHTML of a div called test to 96840664702 and then write javascript...
alert(document.getElementById('test').innerHTML
In Mobile Safari on the iPhone, Firefox, etc., the alert will read "96840664702". If I point Titanium's webview to the same page, the alert will read:
<a href="tel:96840664702" x-apple-data=detectors="true">96840664702</a>
How can I globally disable the data-detectors? I tried a couple meta-tags...
<meta name=”format-detection” content=”telephone=no” >
<meta name="x-" http-equiv="x-rim-auto-match" forua="true" content="none"/>
... but they didn't work. I couldn't find a reference for a meta tag that specifically mentioned Apple's detectors.
Again, it's only a problem in Titanium's webview. It works everywhere else.