* Use CDATA comment stuff in OutputPage::addInlineScript() as opposed to <!-- -->
* (bug 9241) Handle edit section links and include size links for cached
templates the same as the first transclusion.
* (bug 9466) "Rollback failed" page doesn't format edit comment
+* (bug 9472) Invalid XHTML on cached special pages
== Maintenance ==
* New script maintenance/language/checkExtensioni18n.php used to check i18n
*/
function addInlineScript( $script ) {
global $wgJsMimeType;
- $this->mScripts .= "<script type=\"$wgJsMimeType\"><!--\n$script\n--></script>";
+ $this->mScripts .= "<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n$script\n/*]]>*/</script>";
}
function getScript() { return $this->mScripts; }
$updated = $wgLang->timeAndDate( $tRow->qci_timestamp, true, true );
$cacheNotice = wfMsg( 'perfcachedts', $updated );
$wgOut->addMeta( 'Data-Cache-Time', $tRow->qci_timestamp );
- $wgOut->addScript( '<script language="JavaScript">var dataCacheTime = \'' . $tRow->qci_timestamp . '\';</script>' );
+ $wgOut->addInlineScript( "var dataCacheTime = '{$tRow->qci_timestamp}';" );
} else {
$cacheNotice = wfMsg( 'perfcached' );
}