Quirks Mode & IE8 Problem
I have a very strange issue regarding only IE8 + Windows Vista, the error is very strange, I'll use some example names.
I have 2 pages, page1.html
and page2.html
, when opening both typing the address directly, there is no quirks mode.
When page2.html
is opened via a _blank
link (new window), it is displayed in Quirks Mode, this ONLY happens when the page is opened the way mentioned above.
Things I've tried
- Opening
page2.html
from different websites. - Using
<!DOCTYPE html>
onpage1.html
andpage2.html
.
Things to note:
- The doctype on the pages is
<!DOCTYPE html>
- There is NO whitespace / XML declaration above the DOCTYPE
- If the link is opened in a new tab or same tab, there is no problem.
This just baffles me, it works fine from IE8 on Windows7, and also works fine with IE6 on Windows XP.
Update: This doesn't happen on the test server, only on the production server, so is there anything server side that could affect this?
Also tried <meta http-equiv="X-UA-Compa开发者_如何学编程tible" content="IE=8" >
which I thought would force it to render as IE-8, but alas, it doesn't work.
Click Tools (right click the top of the browser window if you don't have a menu bar to enable it) -> Compatibility View Settings -> check if your intranet zone is set to display in compatibility view.
This was a rather straight forward problem, it was nothing to do with the page having bad code, it was an IE addon that caused it, thanks for help.
精彩评论