Does Internet Explorer 8 support HTML 5?
Internet ExplorerInternet Explorer-8HtmlInternet Explorer Problem Overview
Is there any HTML5 support in IE8? Is it on the IE8 roadmap?
Internet Explorer Solutions
Solution 1 - Internet Explorer
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.
Solution 2 - Internet Explorer
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>
Solution 3 - Internet Explorer
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>
.
Solution 4 - Internet Explorer
Modernizr is also a great option for giving IE HTML5 rendering capabilities.
Solution 5 - Internet Explorer
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.
Solution 6 - Internet Explorer
Also are supported HTML5 http://www.whatwg.org/specs/web-apps/current-work/#handler-onhashchange">hashchange event and http://www.whatwg.org/specs/web-apps/current-work/#dom-navigator-online">ononline, offline event
Solution 7 - Internet Explorer
IE8's HTML5 support is limited, but Internet Explorer 9 has just been released and has strong support for the new emerging HTML5 technologies.
Solution 8 - Internet Explorer
HTML5 is still in draft spec (and will be for a loooong time). Why bother?
Solution 9 - Internet Explorer
Check out the caniuse guide for all HTML 5 features across all browsers and versions, including future versions.
Solution 10 - Internet Explorer
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]-->
Solution 11 - Internet Explorer
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.
Solution 12 - Internet Explorer
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