-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
What is the issue with the HTML Standard?
In #10212, preload for json modules is disallowed in <link rel=preload>
. (Which will use rel=modulepreload in #10233)
However, should there be an event handler (either 'error' or 'load') to indicate this <link>
has been processed?
In current spec, the translate a preload destination will return null for "json",
which will make the preload will have a null request and return in step 4.
If request is null, then return.
Then back to the caller, fetch and process the link resource,
the preload in step 3 doesn't call the processResponse because it bailed out early, so neither the event handler 'error' nor 'load' will be called.
Is this behavior correct?
As the wpt preload-type-match.html expects the 'load' handler for <link rel=preload as=json>
will be called.
It looks like there's a bug either in the HTML spec or in the WPT.
CCing @noamr