Apply some IE workarounds to IE11 as well.

Despite the 'I am not IE!' user-agent string, it seems to have
inherited a lot of the old bugs.

Closes #2118