Provides a unified way to detect new features that use script elements.
Currently there is no simple way to know what kind of types can be used for HTMLScriptElement’s type attribute. There are several new feature proposals using the script element. https://github.com/WICG/import-maps/ https://github.com/jeremyroman/alternate-loading-modes/blob/main/triggers.md#speculation-rules https://github.com/WICG/resource-bundles/ We can use the nomodule attribute to detect the module type support. But there is no unified method to detect such new features. If we have the HTMLScriptElement.supports(type) method which is like HTMLLinkElement.relList.supports(), we can easily detect such features.
Final published standard: Recommendation, Living Standard, Candidate Recommendation, or similar final form
Status in Chromium
Enabled by default
Consensus & Standardization
Intent to Prototype urlIntent to Prototype thread
Last updated on 2022-01-22