WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
167702
<link rel=stylesheet type=foo> loaded anyways
https://bugs.webkit.org/show_bug.cgi?id=167702
Summary
<link rel=stylesheet type=foo> loaded anyways
valdrinkoshi
Reported
2017-02-01 12:39:46 PST
<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
Comment 1
2017-02-01 12:41:05 PST
As a temporary workaround, I'm using the deprecated 'disabled' attribute together with 'type', e.g. <link rel=stylesheet type=foo disabled>
Ahmad Saleem
Comment 2
2022-08-12 10:00:46 PDT
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
Comment 3
2022-08-12 10:08:01 PDT
We no longer load this stylesheet as expected.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug