Ready for Trial: HTMLScriptElement.supports(type) method

31 views
Skip to first unread message

Tsuyoshi Horo

unread,
Sep 8, 2021, 12:39:48 AM9/8/21
to blink-dev

Contact emails

ho...@chromium.org


Explainer

https://github.com/horo-t/explainers/blob/main/script_element_supports.md


Specification

https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports


Summary

Provides a unified way to detect new features that use script elements.


Blink component

Blink>HTML>Script


TAG review

https://github.com/w3ctag/design-reviews/issues/674


TAG review status

Pending


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.



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.


Ergonomics

No known ergonomics risks.


Activation

No known activation risks. This method is easy to use.


Security

No known security risks.


Ongoing technical constraints

None.


Debuggability

Developers can call this method from DevTools's console.


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Is this feature fully tested by web-platform-tests?

Yes


DevTrial instructions

https://github.com/horo-t/explainers/blob/main/script_element_supports_how_to.md


Flag name

ScriptElementSupports


Requires code in //chrome?

False


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1245528


Estimated milestones

DevTrial on desktop 95
DevTrial on Android 95
DevTrial on Webview 95


Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/5712146835963904


Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/evk2qgsekYk/m/WtdE_XplBQAJ

 

 

This intent message was generated by Chrome Platform Status.

Reply all
Reply to author
Forward
0 new messages