(INCOMPLETE) V3.1 fix spec failures

This pull request is a place to collect fixes for browser-specific issues ahead of the v3.1 release.

**This isn't yet ready for merge** - I haven't yet attempted to run the specs in all browsers. So far I only tried in IE7/8.

@rniemeyer, @mbest - if you get a change to run specs in other browsers and notice failures, please feel free to add fixes here. No worries if you don't get a chance though - I'll attempt to cover them all during this week.