Questions tagged [html5shiv]

A HTML5 shiv is an emulation of a HTML5 API for a browser which does not have native support.

86 questions
51
votes
4 answers

HTML5 Shim vs. Shiv

Beginner at Rails. I'm coding CSS in my sample application. I understand there is Javascript code to help browsers, i.e. Internet Explorer, support HTML5. What is the difference between HTML5 Shim and HTML5 Shiv? Is it something worth…
owlstone
  • 533
  • 1
  • 4
  • 11
40
votes
1 answer

Is okay to implement Modernizr with Twitter Bootstrap?

Is it OK to implement Modernizr with Twitter Bootstrap? I'm currently using Bootstrap with Google's html5shiv and I wanted to know if I can use Modernizr instead or is it overkill just to get HTML5 elements activated for older IE browsers? Thanks in…
Wasabi Developer
  • 3,523
  • 6
  • 36
  • 60
39
votes
2 answers

Understanding Modernizr benefits over html5shiv

I know there's a lot of good questions on the site about these two script libraries. I wanted to ask something that I can't seem to find in any of them though. What does Modernizr provide that html5shiv doesn't out of the box, that is, just…
bevacqua
  • 47,502
  • 56
  • 171
  • 285
23
votes
5 answers

How to use HTML5shiv correctly... how work on IE 9, Firefox, Safari?

Question How does html5shiv work on IE9 when the conditional comment used [if lt IE 9] is for IE8 and below AND do Safari 4.x and Firefox 3.x read IE conditional comments? If not how could html5shiv POSSIBLY work on these browsers using the…
15
votes
2 answers

HTML5 Shiv Google CDN Link Not Working

This Shiv Google CDN Link Not Working. What Should I Do?
Alex
  • 1,451
  • 5
  • 15
  • 16
10
votes
3 answers

html5shiv not working in IE8?

I can't get styles to pick up in IE8 with HTML5 elements. I've trawled stackoverflow and Google, no suggestions I've tried work. I started with a much more elaborate page (I'm converting an XHTML framework to HTML5) and wasn't concerned in the…
danjah
  • 2,939
  • 2
  • 30
  • 47
10
votes
2 answers

HTML5 shiv are also needed for IE9 in order to support HTML5 elements

I use the following HTML5 elements in my pages: header, article, section and nav. Now I've set all the above HTML5 elements as display: block, and I include the HTML5 shiv with a conditional statement in the header:
Mic
  • 337
  • 1
  • 5
  • 14
7
votes
1 answer

Downsides of a Custom HTML Shiv

On a recent project I used Alexander Farkas' HTML5 Shiv and I noticed that when minified the script was 2.274 KB. This seemed pretty large to me for a concept that John Resig demonstrated in essentially two lines (I realize that this is highly…
Bailey Parker
  • 15,599
  • 5
  • 53
  • 91
7
votes
3 answers

CSS3 equivalent of HTML5 shiv?

Does anybody know if there is a plugin like HTML5 shiv for CSS3 that allows CSS3 to be rewritten and render properly in browser versions before IE9?
pdlol
  • 389
  • 1
  • 5
  • 14
6
votes
4 answers

IE8 Not Recognising HTML5 (even with shiv)

I'm completely stuck on a really weird IE bug and non of the other posts about this issue seem to solve it. IE 8 isn't applying CSS styles to HTML5 tags on a site I've just launched. In the past I've always fixed this with a shiv and/or code…
6
votes
2 answers

Rails 3.2 Asset Pipeline + html5shiv.JS in vendors/assets/javascript

After reading this post (recommended reading) about not using HTML5Shiv direct from source like (almost) everybody does, I'm trying to include the html5shiv.js in my app using Rails 3.2 Asset Pipeline. I downloaded both minified and not-minified…
Guillermo Guerini
  • 997
  • 2
  • 12
  • 22
5
votes
4 answers

Check if html 5 shim is loaded

We generally check if jQuery is loaded from CDN or not and fallback to local version if it didnt.