https://bugzilla.wikimedia.org/show_bug.cgi?id=27488
Krinkle <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #10 from Krinkle <[email protected]> 2011-03-31 00:15:17 UTC --- Using document.write to add elements to the <head> is one of the cases I would call an invalid/wrong use of document.write. Instead create a real <style>-tag and append it to the head. var style = document.createElement( 'style' ); style.innerHTML = 'body { background: red !important; }'; document.getElementsByTagName('head')[0].appendChild(style); or use mw.util.addCSS( 'body { background: red !important }' ); -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
