iOS 4.2 updates Safari with accelerometer API, WebSockets, better HTML5 support

Safari also got API implementations for the accelerometer and gyroscope (currently only found in the iPhone 4 and fourth-generation iPod touch). Soon you could see orientation-aware sites which display a different version of the site depending on the way you hold your iPhone or iPad. Imagine a site that reformats itself, giving you a desktop-like appearance in portrait, but a landscape-optimized gallery-type display when rotated -- the possibilities are endless. In the meantime, if you want to have a play with the orientation detection built into iOS 4.2, hop on over to Mobile Web Programming for all the details and try Maximiliano's rolling ball demo.











