https://github.com/horo-t/explainers/blob/main/script_element_supports.md
https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports
https://github.com/horo-t/explainers/blob/main/script_element_supports.md
Provides a unified way to detect new features that use script elements.
https://github.com/w3ctag/design-reviews/issues/674
Issues addressed
This method provides a synchronous way of feature detections. But for unsupported browsers, developers need to use an asynchronous way as discussed at https://github.com/WICG/import-maps/issues/171.
Gecko: Worth prototyping (https://github.com/mozilla/standards-positions/issues/576)
WebKit: No signal (https://lists.webkit.org/pipermail/webkit-dev/2021-September/031979.html)
Web developers: Positive The developer feedback on the spec issue (https://github.com/whatwg/html/issues/6472) was positive.
No known ergonomics risks.
No known activation risks. This method is easy to use.
No known security risks.
Developers can call this method from DevTools's console.
Yes
https://github.com/horo-t/explainers/blob/main/script_element_supports_how_to.md
ScriptElementSupports
False
https://bugs.chromium.org/p/chromium/issues/detail?id=1245528
https://horo-t.github.io/explainers/script_element_supports_sample.html
https://www.chromestatus.com/feature/5712146835963904
Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/evk2qgsekYk/m/WtdE_XplBQAJ
Ready for Trial: https://groups.google.com/a/chromium.org/g/blink-dev/c/-sE2GpCrG6Y/m/UsHXyVW-CAAJ
This intent message was generated by Chrome Platform Status.
Design docs
https://github.com/horo-t/explainers/blob/main/script_element_supports.md
Summary
Provides a unified way to detect new features that use script elements.
Blink component
TAG review
https://github.com/w3ctag/design-reviews/issues/674
TAG review status
Issues addressed
Risks
Interoperability and Compatibility
This method provides a synchronous way of feature detections. But for unsupported browsers, developers need to use an asynchronous way as discussed at https://github.com/WICG/import-maps/issues/171.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADk0S-Vi%2BhCDOA2y0%2BfUU-dt60_ySvSY0-MjDyGTMi8oHcrm9A%40mail.gmail.com.
LGTM2
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfV1cuHkDVpSbirXFPc7Ej5cX4hcpQumcwkK39988%3DDRyg%40mail.gmail.com.
LGTM1
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADk0S-Vi%2BhCDOA2y0%2BfUU-dt60_ySvSY0-MjDyGTMi8oHcrm9A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
LGTM3Would like to see a concrete plan for expanding this method to other media-loading elements (<link>, <style>, etc.)
LGTM1
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADk0S-Vi%2BhCDOA2y0%2BfUU-dt60_ySvSY0-MjDyGTMi8oHcrm9A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfV1cuHkDVpSbirXFPc7Ej5cX4hcpQumcwkK39988%3DDRyg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/545e1e7f-7285-41fa-b16a-6918021593b8n%40chromium.org.
Risks
Interoperability and Compatibility
This method provides a synchronous way of feature detections. But for unsupported browsers, developers need to use an asynchronous way as discussed at https://github.com/WICG/import-maps/issues/171.
Is it worthwhile to document the desired code patterns we want developers to use? (e.g. test is `supports()` exists and fallback to the async method otherwise)
Thank you very much for LGTMs!Risks
Interoperability and Compatibility
This method provides a synchronous way of feature detections. But for unsupported browsers, developers need to use an asynchronous way as discussed at https://github.com/WICG/import-maps/issues/171.
Is it worthwhile to document the desired code patterns we want developers to use? (e.g. test is `supports()` exists and fallback to the async method otherwise)Yes. Sure. I updated this doc to explain how to detect the importmap support without HTMLScriptElement.supports(type) method.