HTML5: New elements in Internet Explorer log
Note: This post is old .
It may well be that the content be out of date and it is also possible that no one responds more to new comments.
It may well be that the content be out of date and it is also possible that no one responds more to new comments.
If we use today HTML5 elements, the most recent browser to govern fairly reasonable, allowing for example the styling of these elements without much trouble. The Internet Explorer does fall, however (as expected) in the face of wondrous things like
class = "alpha" >
> Alpha
>
section Alpha
... this wonderful DOM grits:
class = "alpha" >
> Alpha
>
section Alpha
no wonder that something not can style. This problem can be repaired but! It is actually quite simple, you must register the new element with only one line of Javascript in IE:
document.createElement ('section'); Already, there are no more problems (see test page). This procedure can be with each HTML5 element that he needs to perform, or have direct access to HTML5 enabling script that enables the complete range of HTML5 elements for Internet Explorer. Sounds to me slightly overkill, but if you really want to use many of the new elements ... why not?