Last modified: 2011-06-09 04:53:38 UTC
$wgRawHtml was enabled on CollabWiki yesterday with bug 29269 but for some reason we are not getting the expected results. It appears that css within <style> tags is getting filtered out of the final source while the rest of the html (including scripts) is being processed. This is not the result gotten on FoundationWiki which also has $wgRawHtml enabled with the same test pages (copied over to Collab). Examples for those with access: http://collab.wikimedia.org/wiki/Template:2010/Donate-appeal3 http://wikimediafoundation.org/wiki/Template:2010/Donate-appeal3 This appears to have some history given the comment on mediawiki.org from 2009 ( http://www.mediawiki.org/wiki/Manual_talk:$wgRawHtml#.3Cstyle.3E_tags_filtered_out) but I haven't found any extensive discussion about it.
I haven't found any discussion about it from back when it was set yet but we may have found the culprit in $wgUseTidy. Evidently there were problems with output on FoundationWiki and that was the culprit. It is still set as false for FoundationWiki at http://noc.wikimedia.org/conf/CommonSettings.php.txt .
Set $wgUseTidy = false for collabwiki.
As an aside, putting style tags inside the <body> is in violation of the html spec (well maybe not html5, but previous html specs), which is probably why tidy is messing with it.
aye, I think that's exactly why. Sadly really the best way to do it on rawhtml wiki's right now I think (rather then large amounts of common.css styling for individual pages)