Log in

View Full Version : Odd bug: Doctype not recognized by IE9


Crazy-Achmet
06-25-2011, 09:35 AM
Hey,

i just made a fresh vB 3.8.7 install and i have seen that the IE9 (haven't tested with IE8, ...) doesn't recognize the HTML Doctype. If i look at the source, it's obvious that the browser changes the original doctype ( <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) to a comment.

Maybe someone can help to fix the problem cause i'm building an HTML5 Template and it's necessary to tell the IE to render the page correctly.

Thanks in advance

Florian

BirdOPrey5
06-26-2011, 12:01 PM
I don't know if it's related but I had to put this line into the headinclude template of my 3.8 forums for IE9 to correctly render the pages:

<meta http-equiv="X-UA-Compatible" content="IE=9" />

Pandemikk
06-27-2011, 11:00 PM
I'm not sure that's a IE 9 rendering bug. Are you sure it isn't a vB setting?

Try changing the doctype. Validate your web site: http://validator.w3.org/ does it say you don't have a doctype declared?

Eric
06-28-2011, 12:33 AM
I believe it is related to a "bug" in vBulletin with the option to send the IE 7 header. Do you have this enabled?

Crazy-Achmet
06-28-2011, 07:10 AM
Eric, you're right, it was the IE7 header setting. "Damn stupid bug"! :D

Thanks alot for your help