Last modified: 2012-02-24 02:52:08 UTC
Given all the troubles we have with the iframe: * can't size the iframe as we wish on android 2.x * clicking event distribution problems when scrolling under position:fixed elements * different clicking event distribution problems when scrolling an iframe itself on honeycomb and ics * etc it's worth trying to put the content in a <div> instead, which will allow us to take over the scrolling behavior with a library like iscroll: http://cubiq.org/iscroll-4 (Can't do that with an iframe as the events don't traverse the frame boundary, very messy!)
We've moved to divs in the current master; I have an older branch initially testing some stuff with iscroll: https://github.com/brion/Wikipedia/tree/refactor-iframe It seems to work nicely, including pinch-to-zoom on Android 4 and double-tap-to-zoom on Android 2.3... however it's much too slow on my Nexus 1, especially on longer articles, and will just be slower on less powerful devices. We may wish to try this again once we've done things like only loading sections that are being viewed, so there's less processing to do.
Switched to divs a while ago, since the SF hackathon (January 21-ish) now with iscroll4 in use for iOS 4.x, and full-screen scrolling fallback for Android 2.x.