With developer mode open, i visit a site A, and see that document mode is set to Edge (default). When following a link on that site to site B, I see that IE automatically downgrades the document mode to 5(!), breaking the site. Furthermore, it's not possible anymore to change document mode to 10 or 9 (it was on site A), rather only 5,6,7 and edge are available.
Site B has this tag set in the head:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Internet Explorer has no compability mode settings for Site B.
I am completely lost here, what could cause IE to downgrade its document mode like this?
I have a feeling this may be a
<!DOCTYPE>issue. With IE 11 document modes are considered deprecated and Microsoft is using the<!DOCTYPE>to render the page.If a site has the following
<!DOCTYPE>declaration then it will render in Standard mode:If a site has the following
<!DOCTYPE>declaration then it will render in "Almost Standards" mode (standards mode in IE7):If a site has the following
<!DOCTYPE>declaration then it will render in Quirks mode (aka IE 5):(Source of above list.)
If Site B has a no doctype or one from the last list, it will render in Quirks mode which is equal to IE 5.