Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -194,6 +194,8 @@ |
195 | 195 | * (bug 33156) Special:Block now allows you to confirm you want to block yourself |
196 | 196 | when using non-normalized username |
197 | 197 | * (bug 33246) News icon shown for news:// URLs but not for news: URLs |
| 198 | +* (bug 33305) Make mw.util.addCSS resistant to IE's @font-face bug with setting |
| 199 | + cssText before DOM insertion. |
198 | 200 | |
199 | 201 | === API changes in 1.19 === |
200 | 202 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/resources/mediawiki/mediawiki.util.js |
— | — | @@ -160,13 +160,14 @@ |
161 | 161 | var s = document.createElement( 'style' ); |
162 | 162 | s.type = 'text/css'; |
163 | 163 | s.rel = 'stylesheet'; |
| 164 | + // Insert into document before setting cssText (bug 33305) |
| 165 | + document.getElementsByTagName('head')[0].appendChild( s ); |
164 | 166 | if ( s.styleSheet ) { |
165 | 167 | s.styleSheet.cssText = text; // IE |
166 | 168 | } else { |
167 | 169 | // Safari sometimes borks on null |
168 | 170 | s.appendChild( document.createTextNode( text + '' ) ); |
169 | 171 | } |
170 | | - document.getElementsByTagName('head')[0].appendChild( s ); |
171 | 172 | return s.sheet || s; |
172 | 173 | }, |
173 | 174 | |