HTML5Shiv Not Working in Ie8

html5shiv not working in IE8?

Move HTML5Shiv’s script element to head section, before all other style and script elements.

Bootstrap 3 Not Working in IE8

You need to change this:

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

To something like this (using whatever is the relative path for your site):

<!--[if lt IE 9]>
<script src="/path/to/your/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="/path/to/your/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

HTML5shiv does not work properly on IE8

From the images, This seems to be a Browser specific Problem and NOT an HTML5shiv Problem.

Please check which Document Mode Your IE8 is running in. If it is IE8 then its some other error.
If it's something else than IE8 please add this meta tag as the first element of the <head> Tag.

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

Bootstrap 3 with respond.js and html5shiv.js still not working on IE8

Okay so the non-responsive css file wasn't exactly what we were looking for. However, we found the problem:

IE8 doesn't seem to like the @import-property.

We used a global css file which imported the necessary styles. When moving all stylesheets to the header and including them with a normal link-tag, it works.

It's weird though, the regular bootstrap styling (buttons, backgrounds and such) got imported properly. The grid system was not. I guess Internet Explorer works in mysterious and retarded ways.

Why aren’t my HTML5 tags being styled in IE8 when I’ve applied HTML5 shiv?

Depending on your security settings, Internet Explorer will not execute JavaScript in local files. An exception are files with a Mark of the Web.

You can change this behavior with the following setting:
Allow active content to run in files on My Computer

If Internet Explorer has even more strict settings, it may not allow JavaScript on any web site. If that is the case, you can enable JavaScript in Internet Explorer with these instructions.



Related Topics



Leave a reply



Submit