Steps to reproduce:
- Go to: https://www.mediawiki.org/
- Let page load, open console
- Execute: mw.loader.load('skins.modern')
Expected result:
- Two <link> tags are added. main.css and print.css. print.css should not be active (in order words, media=print)
Actual result:
- Both are added without a media type.
This is actually quite easy to fix. Though we no longer support media-type for minified css strings (which is fine because we wrap them in @media on the server side), we have to support it still for urls.
Version: 1.18.x
Severity: normal