tc39 / proposal-import-attributes

Proposal for syntax to import ES modules with assertions
https://tc39.es/proposal-import-attributes/
Apache License 2.0
599 stars 26 forks source link

type:"html" #165

Closed Nashorn closed 1 month ago

Nashorn commented 1 month ago

Why not allow this?

nicolo-ribaudo commented 1 month ago

This proposal only defines the syntax space, but then the various attributes (such as type: "json", or type: "css") are defined elsewhere. Given that HTML is not a JS concept, probably the best place to discuss it would be https://github.com/whatwg/html/, which is also where type: "css" is defined.

However, please write an actual motivation for what you want it to behave like, and why you need it. You will need to convince two browser vendors that it's worth to implement it :)