Wrap user styles in CDATA block on classic skins; fixes XHTML parsing error.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 14 Aug 2004 09:10:46 +0000 (09:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 14 Aug 2004 09:10:46 +0000 (09:10 +0000)
includes/Skin.php

index fe9b5b9..f84e340 100644 (file)
@@ -201,9 +201,9 @@ class Skin {
        {
                global $wgOut, $wgStylePath, $wgLang;
                $s = "<style type='text/css'>\n";
-               $s .= "/*/*/\n"; # <-- Hide the styles from Netscape 4 without hiding them from IE/Mac
+               $s .= "/*/*/ /*<![CDATA[*/\n"; # <-- Hide the styles from Netscape 4 without hiding them from IE/Mac
                $s .= $this->getUserStylesheet();
-               $s .= "/* */\n";
+               $s .= "/*]]>*/ /* */\n";
                $s .= "</style>\n";
                return $s;
        }