Was added in
8eda03743c (2013) for IE8 support, but MW now
requires IE11+. The HTMLStyleElement.sheet property is available
in all supported browsers.
<https://caniuse.com/#feat=mdn-api_htmlstyleelement_sheet>
The method itself was introduced in 2010 (
79618024c2 / r76324).
Change-Id: Ia6a778a6d55e9257b9e55edfedd8f17587b96c1c
*/
addCSS: function ( text ) {
var s = mw.loader.addStyleTag( text );
*/
addCSS: function ( text ) {
var s = mw.loader.addStyleTag( text );
- return s.sheet || s.styleSheet || s;