Skip to content

fetch a single module script always defaults to javascript modules for top level fetches #12214

@Gae24

Description

@Gae24

What is the issue with the HTML Standard?

I noticed this inconsistency while working on modulepreload support for Servo.
Inside fetch a single module script the default value of moduleType is javascript-or-wasm, which can be overridden by performing module type from module request with the optional argument moduleRequest.

Essentially it is expected that JSON and CSS module scripts can only be fetched if they are descendants of a javascript module, which is no longer the case with #11981.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions