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

Home / Forums Index / Browsers / Microsoft Internet Explorer
Forum Library, Charter, Moderator: open

Microsoft Internet Explorer Forum

setting default document mode in IE9

5+ Year Member

Msg#: 4439228 posted 4:19 pm on Apr 10, 2012 (gmt 0)

My website loads in default document mode for IE7, even though I'm viewing it with IE9 and have not specified any compatibility modes in the <head> tag. (I don't get the problem on other sites, so I know it's not a browser issue.)

Is there some specific <!DOCTYPE>, <html>, or <meta> tag I need to use to indicate IE9? The following don't work:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<Meta http-equiv="content-type" content="text/html; charset=utf-8" />

Neither do the more basic:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang=en-US>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1">



5+ Year Member

Msg#: 4439228 posted 1:10 pm on Apr 11, 2012 (gmt 0)

I just copied the source code of a page from another site that displays with default doc mode for IE9 and loaded it onto a page on my site and it shows up as default doc mode for IE7. Is it possible that my web host is putting out some header that's affecting this?


5+ Year Member

Msg#: 4439228 posted 6:34 am on Oct 11, 2012 (gmt 0)

See here Microsoft documentation on defining the compatibility of a document: [msdn.microsoft.com...]

Hope that helps!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Browsers / Microsoft Internet Explorer
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