Problems with IE8 Standards Mode, SharePoint menus, and DocTypes 11

With the official release of Internet Explorer 8, many people are starting to test their custom SharePoint branding in the new browser. IE8 is an interesting animal in that it decides its rendering engine based on certain criteria in your code (in SharePoint’s case, the master page): If IE8 sees a valid DocType declared it will attempt to render a site in IE8 Standards Mode. If IE8 does not see a DocType it will attempt to render a site in quirks mode (otherwise known as pre IE7 rendering mode).   One nice thing about IE8 is that it includes Developer Tools (click Tools > Developer Tools) which will actually show you which rendering mode is currently being used (the last tab at the top of the Developer Tools window). You can also use this tab to test the other rendering modes, selecting them and observing the result in the refreshed window. Now, on to the ...