Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Spec doesn't clearly define onerror must be called if import map is added after the 1st module load #268

@allstarschh

Description

@allstarschh

https://wicg.github.io/import-maps/#document-acquiring-import-maps

An import map is accepted if and only if it is added (i.e., its corresponding script element is added) before the first module load is started

But it doesn't mention onerror must be called, or define what is 'accepted'

The error event is defined later in register an import map

  1. If element’s the script’s result is null, then fire an event named error at element, and return.

But the registration is done in almost end of Prepare a script

Prepare a script (2) should have mentioned the error behavior when an import map is added after the 1st module load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions