Why iOS isn’t ready for HTML5, yet…on Feb 22, 2011 in HTML5, Mobile by Dominic Chambers
Okay, just teasing! My recent experiences creating an HTML5 based mobile web app for iOS has been, on the whole, very pleasant indeed. However, I recently wrote a similarly tilted article “Why Android isn’t ready for HTML5, yet…” which discussed some far more serious bugs I encountered that prevented me getting my App working on that platform, and I thought it might be helpful if I did something similar for iOS.
So, here are the iOS issues I did run into…
- iOS reports incorrect
window.innerHeightvalues once it’s been rotated from portrait to landscape mode, and refreshing the page doesn’t help!
- Most CSS 2D Transforms can be specified as CSS 3D Transforms by setting the z plane to zero, and doing this causes the GPU to be used (which is good), but also with slightly different results to when only 2D is being used, causing glitchy rendering if the GPU gets switched in and out as transforms are run (which is bad).
- iOS doesn’t yet support SVG inside HTML, which may prevent you using some older libraries — you must serve your document as
application/xhtml+xmlto use SVG within iOS.
Unlike Google with Android, Apple have clearly done enough testing around the types of features mobile web app developers will actually want to use, and the few bugs that do remain can be worked around without too much fuss. Let’s hope Gingerbread brings similar improvements to the Android platform.