Bug 167702 - <link rel=stylesheet type=foo> loaded anyways
Summary: <link rel=stylesheet type=foo> loaded anyways
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 10
Hardware: Mac macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 12:39 PST by valdrinkoshi
Modified: 2022-08-12 10:08 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valdrinkoshi 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?
Comment 1 valdrinkoshi 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>
Comment 2 Ahmad Saleem 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!
Comment 3 Ryosuke Niwa 2022-08-12 10:08:01 PDT
We no longer load this stylesheet as expected.