WICG / import-maps

How to control the behavior of JavaScript imports
https://html.spec.whatwg.org/multipage/webappapis.html#import-maps
Other
2.65k stars 69 forks source link

calling onerror of the script element if the import map string cannot be parsed #278

Closed allstarschh closed 2 years ago

allstarschh commented 2 years ago

According to register an import map Step 1

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

But from the wpt, with-errors.html

Shouldn't the onerror be called for the 1st import map script tag? (onerror 1)

allstarschh commented 2 years ago

Just filed #279, it is related to this issue, as should the result of parse an import map string be null when it throws an Error?