Search code examples
asp.nethtmlsslinternet-explorer-7html5shiv

Mixed Content Error in IE7 with html5shiv and SSL


I'm developing an ASP.Net app that is using html5shiv and ssl. For some reason I am getting mixed content errors in IE7 using html5shiv. If I remove html5shiv the errors go away. I'm also using update panels and master pages if that matters. Any ideas?

Edit: After further testing it appears to be a combination between html5shiv and a stylesheet. If either are excluded, no mixed content error.

<script type="text/javascript" src="../js/html5shiv.js"></script>
<link rel="stylesheet" href="../styles/global.css" />

Solution: I had a data uri on a header style. Removing the uri solved the problem.


Solution

  • This ended up being an issue with a css style with a data URI. Apparently IE7 recognizes this as mixed content. The modernizer was dynamically loading a header tag which is the element the offending css style was applied to.