Bug 303761

Summary: Support "style" and "json" in as attribute for modulepreload destination
Product: WebKit Reporter: kschmi
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: annevk, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

kschmi
Reported 2025-12-08 09:34:29 PST
Currently only "script" is supported, but per https://github.com/whatwg/html/issues/10233, "style" and "json" should also be supported. Tests will be added under wpt/html/semantics/scripting-1/the-script-element/module.
Attachments
kschmi
Comment 1 2025-12-08 09:43:23 PST
Per the conversation in the HTML5 PR (https://github.com/whatwg/html/pull/11981#pullrequestreview-3533542077), this will also cover deprecating support for `<link type="preload" as="json">`, as "modulepreload" is the preferred destination. Support for `<link type="preload" as="json">` was recently added in WebKit.
Radar WebKit Bug Importer
Comment 2 2025-12-15 09:35:11 PST
Note You need to log in before you can comment on or make changes to this bug.