Author: srainwater
Description:
The MediaWiki documentation suggests that $wgDocType defaults to XHTML Transitional and that changing the value of this variable with alter the doctype that appears in the live pages. Neither of these things is correct in the default install.
In actuality, there is another config value, $wgHtml5, which defaults to True and overrides the value $wgDocType. The actual doctype value will always be XHTML Strict regardless of what is set in $wgDocType unless you first set $wgHtml5 to false.
I'm not certain what the intended behavior is here. Since I'd like to have the XHTML Transitional doctype, which is described by the documentation as the default, this seems like a bug in MediaWiki to me. But if the intended behavior is to support only XHTML strict, then the bug is possibly in the documentation, which should say that $wgDocType is deprecated.
Version: 1.16.x
Severity: minor