One thing I found, to my temporary sorrow is that UIWebView
is a bit more strict while setting style values through JS. So say in mobile safari
element.style.width = 300;
will work just fine, but in UIWebView
you must set the value as
element.style.width = 300 + "px";
There are other differences which I'm discovering slowly. I'll update this as I do.