You are here: Foswiki>Tasks Web>Item12993 (05 Jul 2015, GeorgeClark)Edit Attach

Item12993: htmldoctype needs to change

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: master
Reported By: WilliamMorgan
Waiting For:
Last Change By: GeorgeClark
Currently the htmldoctype setting in the foswiki.tmpl and the foswiki.pattern.tmpl is set to

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="%LANG%" lang="%LANG%">

Should be

<!DOCTYPE html><html lang="%LANG%">

Ref: Support.Question1505

-- WilliamMorgan - 21 Aug 2014

Confirmed. This is a minimum requirement to switch modern IEs into standard mode. Otherwise it will fall back to IE7 "Almost Standards" mode ... which isn't really supported anymore. See also http://msdn.microsoft.com/en-us/library/ff955379(v=vs.85).aspx

In addition this one-liner should go into the html head as well:

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

Even better would be to add an X-UA-Compatibility http header to the communication. Listing it in the html head is not 100% reliable as it might fall off the radar of IE reading the first bites while downloading the html document. Better would be to flag IEs as early as possible to give its best rendering html.

-- MichaelDaum - 21 Aug 2014

The most recent checkin has broken the HTMLValidationTests.

Specifically, the <meta charset="%CHARSET%" /> setting upsets the tests; and one of the templates has a missing quote.

Michael, I'm rewinding the effect of this checkin until you have a chance to review.

-- CrawfordCurrie - 13 Dec 2014

No,don't revert. I have filed another task about these validation failures. See Item13134.

-- MichaelDaum - 13 Dec 2014
 
Topic revision: r8 - 05 Jul 2015, GeorgeClark
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