Reputation: 71171
Is there any HTML5 support in IE8? Is it on the IE8 roadmap?
Upvotes: 137
Views: 328178
Reputation: 794
You can use this to make IE8 understand/support basic HTML5 tags.
<!--[if lt IE 9 ]>
<script type="text/javascript">
var html5Elem = ['header', 'nav', 'menu', 'section', 'article', 'aside', 'footer'];
for (var i = 0; i < html5Elem.length; i++){
document.createElement(html5Elem[i]);
}
</script>
<![endif]-->
Upvotes: 4
Reputation: 2720
You can get HTML5 tags working in IE8 by including this JavaScript in the head.
<script type="text/javascript">
document.createElement('header');
document.createElement('nav');
document.createElement('menu');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
</script>
Upvotes: 72
Reputation: 8943
Does it support
<!DOCTYPE html>
Yes it does.
Perhaps a better question is what modern web features IE8 supports. Some of the best places to answer that are caniuse.com, html5test.com, and browserscope.org.
HTML5 means a lot of different things to different people. These days, it means HTML, CSS, and JavaScript functionality. The term is becoming a bit "Web 2.0"-like.
Upvotes: 17
Reputation: 81
IE8's HTML5 support is limited, but Internet Explorer 9 has just been released and has strong support for the new emerging HTML5 technologies.
Upvotes: 8
Reputation: 5413
Check out the caniuse guide for all HTML 5 features across all browsers and versions, including future versions.
Upvotes: 4
Reputation: 8943
Some of the other answers here are about adding HTML5 capabilities to IE8 and other browsers. These are called Polyfills and my favourite place for finding those is here.
Upvotes: 2
Reputation: 115
HTML5 is still in draft spec (and will be for a loooong time). Why bother?
Upvotes: 5
Reputation: 29
You can read more about IE8 and HTML 5 support here:
http://blogs.msdn.com/giorgio/archive/2009/11/29/ie8-and-html-5.aspx
Upvotes: 2
Reputation: 3727
Modernizr is also a great option for giving IE HTML5 rendering capabilities.
Upvotes: 25
Reputation: 30245
You can use this IE HTML5 shim script to gain a basic level of support for the new semantic elements in HTML5 such as <article>
.
Upvotes: 43
Reputation: 125
Also are supported HTML5 hashchange event and ononline, offline event
Upvotes: 12
Reputation: 8026
IE8 beta 2 supports two APIs from HTML5: cross-document messaging and non-SQL storage.
IE8 beta 2 doesn’t implement the HTML5 parsing algorithm or the new elements (no <canvas>
or <video>
support).
There are also bug fixes that align IE8 better with HTML5.
Upvotes: 79
Reputation: 467
According to http://msdn.microsoft.com/en-us/library/cc288472(VS.85).aspx#html, IE8 will have "strong" HTML 5 support. I haven't seen anything discussing exactly what "strong support" entails, but I can say that yes, some HTML5 stuff is going to make it into IE8.
Upvotes: 2