Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which X-UA-Compatible takes precedence? Http-header or Meta-tags?

As the question states basically. If you have X-UA-Compatible in both your HTTP headers and a meta tag on your document, and they conflict, which one gets respected by IE?

like image 588
Chao Avatar asked Feb 03 '12 12:02

Chao


1 Answers

TL;DR: The meta tag wins

I found the following (updated) flowchart here (link is broken) and associated blog post that provides an explanation of how IE9 determines document mode:

enter image description here

like image 169
David Clarke Avatar answered Sep 20 '22 17:09

David Clarke