Wikibits no longer uses document.write() (fixes bug 2186).
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 8 Jul 2008 14:49:58 +0000 (14:49 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 8 Jul 2008 14:49:58 +0000 (14:49 +0000)
RELEASE-NOTES
skins/common/wikibits.js

index eb5a9a7..d6f4af0 100644 (file)
@@ -425,6 +425,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 14745) Image moving works on sites that transform thumbnails via 404
 * (bug 14159) Use of MEMCACHE_COMPRESSED constant no longer causes E_NOTICE 
   on PHP installs with the Memcache module installed.
+* (bug 2186) Document.write() in wikibits caused failures when using
+  application/xhtml+xml. The calls to this have been removed.
 
 === API changes in 1.13 ===
 
index 373c8ee..e876e7d 100644 (file)
@@ -86,14 +86,14 @@ function appendCSS(text) {
        return s;
 }
 
-// document.write special stylesheet links
+// special stylesheet links
 if (typeof stylepath != 'undefined' && typeof skin != 'undefined') {
        if (is_opera_preseven) {
-               document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/'+skin+'/Opera6Fixes.css">');
+               importStylesheetURI(stylepath+'/'+skin+'/Opera6Fixes.css');
        } else if (is_opera_seven && !is_opera_95) {
-               document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/'+skin+'/Opera7Fixes.css">');
+               importStylesheetURI(stylepath+'/'+skin+'/Opera7Fixes.css');
        } else if (is_khtml) {
-               document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/'+skin+'/KHTMLFixes.css">');
+               importStylesheetURI(stylepath+'/'+skin+'/KHTMLFixes.css');
        }
 }