Readd some IE supporting changes that got dropped in recent refactorings