Saturday, May 30, 2009

IE8 breaks dojo

Problem: IE8 breaks dojo. The error: "Member not found" in dojo.js

http://www.dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/ie-8-0-chokes-dojo


Specifying Document Compatibility Modes

To specify a document mode for your Web pages, use the meta element to include an X-UA-Compatible http-equiv header in your Web page. The following example specifies Emulate IE7 mode compatibility.
Copy Code

<html>
<head>
<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<title>My Web Page</title>
</head>
<body>
<p>Content goes here.</p>
</body>
</html>

The content attribute specifies the mode for the page; to mimic the behavior of Internet Explorer 7, specify IE=EmulateIE7. Specify IE=5, IE=7, or IE=8 to select one of those compatibility modes. You can also specify IE=edge to tell Internet Explorer 8 to use the highest mode available.

The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the title element and other meta elements.



http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx

No comments: