When creating a master page in SharePoint that should work with IE9 you will come up with some errors that at least made me walk away from that approach and settled with building designs for IE8. But after working with CSS3 and HTML5 in other solutions I did not want this to hold me back from using the same approach in SharePoint.
To make this work you have to have custom master page where the emulation meta tag is set to IE=Edge and then the fun begins.
I have discovered at least 3 major errors that comes along with this. It always ha something to do with JavaScript. The solution is this; either you override those JavaScript functions that create the error by using custom made functions that you add in a an own JavaScript file OR you build a Web Control that emulate the current Request to IE8 when in those areas that creates the error . The later solution is a quick fix that may not be the best of solutions but it will resolve the error and as long as you not use your CSS3 features in these pages that it may involve you are home free.
This is the first error of three and this is the first solution
![]()
Original function
![]()
New function
![]()
As you probably has noticed there are more errors when it comes to IE9 and SharePoint. I have discovered 2 additional major errors that I will write about when I have the time.
To make this work you have to have custom master page where the emulation meta tag is set to IE=Edge and then the fun begins.
I have discovered at least 3 major errors that comes along with this. It always ha something to do with JavaScript. The solution is this; either you override those JavaScript functions that create the error by using custom made functions that you add in a an own JavaScript file OR you build a Web Control that emulate the current Request to IE8 when in those areas that creates the error . The later solution is a quick fix that may not be the best of solutions but it will resolve the error and as long as you not use your CSS3 features in these pages that it may involve you are home free.
This is the first error of three and this is the first solution
1. Display Language Option in Welcome menu
The Problem
When having alternative languages the user should be able to switch between languages by open the welcome menu and there choose Select Display Language to open a sub menu where he/she can select one of the languages that are available. When running SharePoint in IE9 mode this don't work.The Fix
The Javascript file [PATHTOHIVE14]\TEMPLATE\LAYOUTS\[LCID]\MENU.JS has a function called MergeAttributes. Copy that function into an own javascript file make the changes that is shown down below and deploy it and include it in your master page.Original function
New function
As you probably has noticed there are more errors when it comes to IE9 and SharePoint. I have discovered 2 additional major errors that I will write about when I have the time.