New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
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" "">

Which this site tells me is why it's setting the standards to IE7: 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

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

QuestionForm edit

Subject Issue in browser
Version Foswiki 1.1.4
Status Closed unanswered
Related Topics
Topic revision: r7 - 11 Sep 2015, MichaelDaum - This page was cached on 18 Aug 2018 - 12:48.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy