This question about Issue in browser: Closed unanswered
Change DOCTYPE declaration
Hi Guys
I'm trying to change the DOCtype declaration. At the moment when I load foswiki in Internet Explorer 9, it sets the document standards to IE7 and knocks out some of the CSS styling I've put in. The doctype declaration is set to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Which this site tells me is why it's setting the standards to IE7:
http://msdn.microsoft.com/en-us/library/ff955379(v=vs.85).aspx. Now I've found the htmldoctype setting in the foswiki.tmpl and changed it, but it's not taking effect on the site.
Can someone tell me why?
Thanks in advance.
--
WilliamMorgan - 21 Aug 2014
You are right. This should be
}%%TMPL:DEF{"htmldoctype"}%<!DOCTYPE html>
<html lang="%LANG%">%TMPL:END%%{
See also
https://github.com/h5bp/html5-boilerplate/blob/master/src/index.html
Could you file a task against
PatternSkin? Thanks.
--
MichaelDaum - 21 Aug 2014
Thanks Michael. That's done.
Tasks.Item12993
I've changed the setting on my foswiki installation, but IE is still setting the document mode to IE7.
--
WilliamMorgan - 21 Aug 2014
Try adding
<meta http-equiv="X-UA-Compatible" content="IE=edge">
to the head like demo'ed on the html5 boilerplate link above.
--
MichaelDaum - 21 Aug 2014
I tried that, but no luck. I'll try restarting apache. See if that helps.
--
WilliamMorgan - 21 Aug 2014
Still no luck with this, it's reverting to IE7 standards. Got no idea why!
--
WilliamMorgan - 04 Sep 2014