Bug 167702
Summary: | <link rel=stylesheet type=foo> loaded anyways | ||
---|---|---|---|
Product: | WebKit | Reporter: | valdrinkoshi |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, cdumez, koivisto, rniwa |
Priority: | P2 | ||
Version: | Safari 10 | ||
Hardware: | Mac | ||
OS: | macOS 10.12 |
valdrinkoshi
<link rel=stylesheet type=foo> is loaded anyways, and triggers error/load events, updates the document.styleSheets
http://jsbin.com/haxova/1/edit?html,console,output
Should this be done only if the node has a valid type attribute?
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
valdrinkoshi
As a temporary workaround, I'm using the deprecated 'disabled' attribute together with 'type', e.g.
<link rel=stylesheet type=foo disabled>
Ahmad Saleem
rniwa@webkit.org - Alternate stylesheet support with "type" only landed recently - https://bugs.webkit.org/show_bug.cgi?id=56932
Although in this - there is no error in console on the attached JSBin across all browsers (Safari 15.6, Safari Technical Preview 151, Chrome Canary 106 and Firefox Nightly 105).
I don't think this is a bug at all and it can be closed as "RESOLVED INVALID", appreciate if you can have a look. Thanks!
Ryosuke Niwa
We no longer load this stylesheet as expected.