Index: branches/REL1_18/phase3/RELEASE-NOTES-1.18 |
— | — | @@ -27,6 +27,8 @@ |
28 | 28 | for backward compatibility. |
29 | 29 | * (bug 30172) The check for posix_isatty() in maintenance scripts did not detect |
30 | 30 | when the function exists but is disabled. Introduced Maintenance::posix_isatty(). |
| 31 | +* (bug 33305) Make mw.util.addCSS resistant to IE's @font-face bug by setting |
| 32 | + cssText after DOM insertion. |
31 | 33 | |
32 | 34 | == MediaWiki 1.18 == |
33 | 35 | 2011-11-24 |
Index: branches/REL1_18/phase3/resources/mediawiki/mediawiki.util.js |
— | — | @@ -164,12 +164,13 @@ |
165 | 165 | var s = document.createElement( 'style' ); |
166 | 166 | s.type = 'text/css'; |
167 | 167 | s.rel = 'stylesheet'; |
| 168 | + // Insert into document before setting cssText (bug 33305) |
| 169 | + document.getElementsByTagName('head')[0].appendChild( s ); |
168 | 170 | if ( s.styleSheet ) { |
169 | 171 | s.styleSheet.cssText = text; // IE |
170 | 172 | } else { |
171 | 173 | s.appendChild( document.createTextNode( text + '' ) ); // Safari sometimes borks on null |
172 | 174 | } |
173 | | - document.getElementsByTagName('head')[0].appendChild( s ); |
174 | 175 | return s.sheet || s; |
175 | 176 | }, |
176 | 177 | |
Property changes on: branches/REL1_18/phase3/resources/mediawiki/mediawiki.util.js |
___________________________________________________________________ |
Modified: svn:mergeinfo |
177 | 178 | Merged /trunk/phase3/resources/mediawiki/mediawiki.util.js:r106992 |
Property changes on: branches/REL1_18/phase3 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
178 | 179 | Merged /trunk/phase3:r106992 |