SharePoint Best Practices: People Editor acting buggy in IE8

Written by:

Yesterday I was testing an ASP .Net page within SharePoint which contained a SharePoint People Editor control which was acting rather ‘strange’.  It would render in an odd kind of way and removing a person from the control would cause the entire text box to be removed from the DOM!

I was convinced that there was something on the page that was interfering with the People Editor such as some JavaScript or something with a duplicate id.  Even after removing everything from the page minus the CSS link it would still not work correctly.  Exasperated I decided to click the IE 8 ‘compatibility mode’ button which forces IE8 to use IE7′s rules for rendering, which caused the People Editor to start working.

So if you ever run into an issue like this try embedding a meta tag in the head of you page to tell IE8 to use its compatibility mode:

<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />

I hope this helps. Let me know if you have any questions or comments. Thanks.

-Lee Kohn

Posted on May 14th, 2010 in Technology, Tips & Tricks.