Article introduction of Wulin.com (www.vevb.com): Since the introduction of the HTML5 standard, it has received a lot of attention. As the IE browser with the most users in the world, it can support the HTML5 standard. Last week, Microsoft stated at the technical conference that Microsoft is currently developing IE9 will support the HTML5 standard more, but Microsoft is a bit vague about whether IE9 will fully support all HTML5 standards. HTML
Since the introduction of the HTML5 standard, it has received a lot of attention. As the IE browser with the most users in the world, it can support the HTML5 standard. Last week, Microsoft stated at the technical conference that IE9, which Microsoft is currently developing, will support the HTML5 standard more, but Microsoft is a bit vague about whether IE9 will fully support all HTML5 standards. The HTML5 standard can bring more efficient and cleaner code to web pages. Only when Microsoft participates in HTML5 design can IE browser recognize more new elements.
The HTML5 standard is expected to be released to the world in 2022. Although it is still about 3 years away from the date of its release, I think it is not that far away from us. At present, many website design and development are adopting the HTML5 standard. In terms of the formulation and promotion of HTML5 standards, well-known browser manufacturers such as Apple, Google, Opera and Mozilla have performed more positively. Microsoft is now taking action. Judging from the IE9 details released by Microsoft at the technology conference last week, Microsoft will adopt a cautious attitude to get involved in web standards. Microsoft has also stated that IE browser will focus on standard HTML5. However, Microsoft's latest browser IE8 and the following IE versions have limited support for HTML5 tags. We can solve the current IE browser's HTML5 support problem by adding scripts to web pages.
To make IE (including IE6) support HTML5 elements, we need to add the following JavaScript to the HTML header, which is a simple document.createElement declaration, using conditional comments to call this js file against IE. Other non-IE browsers such as Opera, FireFox, etc. will ignore this code and there will be no http request.
<!–[if IE]>
<script src=></script>
<![endif]->
The above code will only run under IE browser. Another thing to note is that calling the html5.js file in the page must be added to the head element of the page, because the IE browser must know this element before the element is parsed, so this js file cannot be called at the bottom of the page.
This html5 js file is provided by the author on the Google code project for everyone to call directly. Of course, if you think this will affect the speed of your webpage opening, you can download the html5 js file directly and upload it to your server to call it separately.
Here is the code in the js file of html5:
(function(){if(!/*@cc_on!@*/0)return;var e = abbr,article,aside,audio,canvas,datalist,details,dialog,
Eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,
output,progress,section,
time,video.split( ','),i=e.length;while(i–){document.createElement(e[i])}})()
In addition to calling the js file containing the above code in the web page to enable the IE browser to support HTML5 elements, you can also add the code directly to the web page in the following way.
<!–[if IE]>
<script>
(function(){if(!/*@cc_on!@*/0)return;var e = abbr,article,aside,audio,canvas,datalist,details,dialog,
Eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,
output,progress,section,
time,video.split( ','),i=e.length;while(i–){document.createElement(e[i])}})()
</script>
<![endif]->
IE development manager Adrian Bateman once said that the IE team hopes to share their views on HTML5 and participate in the discussion on the formulation of the standard. Butman said that although the IE team is currently asking questions rather than giving solutions, public discussion is the best way to promote the development of HTML5. I believe that regardless of whether IE browser can continue to support the HTML5 standard, the widespread use of HTML5 standard around the world has become a general trend.
original: