I have this web page that begins with <!-- DOCTYPE html -->
, which I believe would suffice to indicate HTML 5 and make IE9 interpret it as "IE9 standards". However, when I navigate to it, IE9 shows it as "Browser mode: IE9 Compat View", "Document mode: IE7 standards".
The two first lines in the page are:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
As a result, some of the layout is rendered incorrectly. For example, a right-aligned table cell shows left-aligned. If I manually set IE to "Browser mode: IE9", "Document mode: IE9 standards", then things look perfect. Other browsers work fine.
What do I need to change in order to make IE9 recognise HTML 5 and prevent it from working in compatibility mode? Thanks.