Emit CDATA more intelligently
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Aug 2009 21:06:54 +0000 (21:06 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Aug 2009 21:06:54 +0000 (21:06 +0000)
commit5e72d3501e5abf7c47104268845f09f74003a711
tree776b11da1258fc50298e7bd898b166cb81c6392a
parent398ecf6517ca217f03cc938409d6daeb7c6ab466
Emit CDATA more intelligently

This fixes some possible XML invalidity from r54767: CDATA stuff was
being added only if $wgHtml5 was false, instead of whenever
$wgWellFormedXml is true.  Also, it uses CDATA for script as well as
style, but in both cases only uses it if there's a & or < somewhere.
includes/HTMLForm.php
includes/Html.php