homepage Welcome to WebmasterWorld Guest from 54.226.191.80
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Internet Explorer 9 changes the document mode
kevina




msg:4284091
 11:01 am on Mar 19, 2011 (gmt 0)

When I click on a link, the document mode that is set to Internet Explorer 9 is set automatically to IE 7 as viewed with F12.

The original page has the <!DOCTYPE html> and the linked page too.

The effect is that Canvas does not work when the user click on a link in a page.

Someone experienced the problem?

 

tedster




msg:4284216
 4:13 pm on Mar 19, 2011 (gmt 0)

It does sound like a document mode compatibility problem. That's something I haven't run into yet for the sites I work with, but I have read about it. Maybe this reference from Microsoft will provide a clue.

Defining Document Compatibility [msdn.microsoft.com]

[edited by: tedster at 1:40 pm (utc) on Mar 21, 2011]

kevina




msg:4285030
 1:29 pm on Mar 21, 2011 (gmt 0)

Thanks. Lot of info about compatibility.

In some case, the content of a page may change the mode of rendering whatever the doctype.

Actually, the document mode switches from IE9 to IE7 automatically, when I follow a link with target="_blank".

Seems to be a bug.

But for my users, I changed the target and it is ok. This must be known however.

JAB Creations




msg:4285622
 12:11 pm on Mar 22, 2011 (gmt 0)

You can force IE (regardless of which version) to always use it's best/latest version of the Trident rendering engine by using the following meta element...

<meta http-equiv="X-UA-Compatible" content="IE=edge" />


It's a bit buried on that MSDN page. Also if your (X)HTML is not valid then it may be taken as an excuse to force the page to be rendered in quirks mode. I personally stick to XHTML served as application/xhtml+xml because if the page breaks I know it on the spot and fix it within seconds. ;)

- John

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved