* (bug 33156) Special:Block now allows you to confirm you want to block yourself
when using non-normalized username
* (bug 33246) News icon shown for news:// URLs but not for news: URLs
+* (bug 33305) Make mw.util.addCSS resistant to IE's @font-face bug with setting
+ cssText before DOM insertion.
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
var s = document.createElement( 'style' );
s.type = 'text/css';
s.rel = 'stylesheet';
+ // Insert into document before setting cssText (bug 33305)
+ document.getElementsByTagName('head')[0].appendChild( s );
if ( s.styleSheet ) {
s.styleSheet.cssText = text; // IE
} else {
// Safari sometimes borks on null
s.appendChild( document.createTextNode( text + '' ) );
}
- document.getElementsByTagName('head')[0].appendChild( s );
return s.sheet || s;
},