Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed IE X-UA-Compatible conditional comment to actually call IE. Add…
…ed newline between </body> and </html>.
  • Loading branch information
jeffreybarke committed Jun 27, 2010
1 parent bf64d1c commit f755109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion css3-modal/demo.html
Expand Up @@ -5,7 +5,7 @@
<head>

<meta charset="utf-8" />
<!--[if !IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->

<title>Yet another HTML5 template, with jQuery</title>

Expand Down Expand Up @@ -36,5 +36,7 @@ <h1>This is a modal header</h1>
</div>

<script src="http://media.theknot.com/jscripts/jquery/jquery-1.4.2.min.js"></script>

</body>

</html>

3 comments on commit f755109

@paulirish
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A user reported that this actually didnt work.. the ie=edge never jumped ie8 into standards mode..

did you see it succeed?

@jeffreybarke
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Paul. It turns out it doesn't work. :(

I updated the markup and sent Marco a pull request. I also wrote about the problem and a solution here: http://jeffreybarke.net/2010/08/ie8-x-ua-compatible-and-conditional-comments/

@gnosisgithub
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the following in my header.php (for wordpress theme):

which guarantees proper rendering for all versions of IE, but breaks rendering for Chrome on iPAD.

How to resolve?

Please sign in to comment.