...

View Full Version : Need help getting MSIE to behave.



DavidFoxfire
04-28-2011, 07:05 PM
I have designed one of my newer web sites, http://scarletpi.foxfirestudios.net/ , using HTML5 and CSS3. While it looks fine on Firefox and Chrome, Internet Explorer totally screws it up. If there's anyone who can help me out with this, it'll be greatly appreciated. Thanks in advance.

teedoff
04-28-2011, 07:15 PM
What version of IE are you using? I haven't messed with html5 yet as the support is not 100% yet, but I know there is some javascript to "fix" an IE bug for html5 doctypes. Not sure if it will help but here it is.


<!--[if lte IE 8]>
<script language="JavaScript">
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header ,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(',');for(var i=0;i<e.length;i++){document.createElement(e[i])}})()
</script>
<![endif]-->

DavidFoxfire
04-28-2011, 07:21 PM
What version of IE are you using? I haven't messed with html5 yet as the support is not 100% yet, but I know there is some javascript to "fix" an IE bug for html5 doctypes. Not sure if it will help but here it is.


<!--[if lte IE 8]>
<script language="JavaScript">
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header ,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(',');for(var i=0;i<e.length;i++){document.createElement(e[i])}})()
</script>
<![endif]-->

I think I got the most recent version. I thought about just letting MSIE be MSIE and just give a warning, but then I used a wordpress theme that was HTML5 and had it working on that browser.

Apostropartheid
04-29-2011, 01:51 AM
I think I got the most recent version. I thought about just letting MSIE be MSIE and just give a warning, but then I used a wordpress theme that was HTML5 and had it working on that browser.

Given that HTML5 is not actually, you know, that altogether, IE is well within its rights to ignore it.

As it is, IE9 includes some support for HTML5 features. To fill in the gaps, you can use a script like html5shiv (http://code.google.com/p/html5shiv/) or use Modernizr (http://www.modernizr.com/) to detect support across all browsers, IE ou non.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum