Those settings are ignored if $wgHtml5 is set to true, which it is by
default in 1.16+. See
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/85124
(Even with $wgHtml5 set to true, MediaWiki still serves an XHTML
doctype with in 1.16; in 1.17+ it doesn't.)