giving IE html5
Posted: Fri Mar 18, 2011 11:31 pm
The biggest problem that one experiences in web design with/for html5 is without a doubt IE.
Therefore, I may have mentioned this in a previous posting in the forum, one can use DOM to overcome this; as follows:
I place the following just above the closing head element( </head> )
- Code: Select all
<!-- this is to give IE html5 tag info -->
<!--[if IE]>
<script>
document.createElement("header" );
document.createElement("footer" );
document.createElement("section");
document.createElement("aside" );
document.createElement("nav" );
document.createElement("article");
document.createElement("hgroup" );
document.createElement("time" );
</script>
<noscript>
<strong>Warning !</strong>
Because your browser does not support HTML5, some elements are simulated using JScript.
Unfortunately your browser has disabled scripting. Please enable it in order to display this page.
</noscript>
<![endif]-->
You could of course change <!--[if IE]> to <!-- lt IE9><!--[if IE]> which then will cover all IE that are not IE9.
You can also give IE a limited CSS ability by adding the following:
check out this link http://css3pie.com/
makes Internet Explorer 6-8 capable of rendering several of the most useful CSS3 decoration features.
enjoy
mapleleaf