Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for HTMLScriptElement.
Developer library 6
Firefox 94 release notes for developers
nt) or the global attribute [`enterkeyhint`](/docs/Web/HTML/Reference/Global_attributes/enterkeyhint) ([Firefox bug 1648332](https://bugzil.la/1648332)). - The HTMLScriptElement.supports() static method is now supported. This provides a simple and unified method for feature checking whether a browser supports particular types of scripts, such as JavaScript modules or classic scripts ([Firefox bug 1729239](https://bug
Firefox 35 release notes for developers
by the spec ([Firefox bug 1055773](https://bugzil.la/1055773)). - The `crossOrigin` reflected attribute of HTMLImageElement, HTMLLinkElement, HTMLMediaElement, HTMLScriptElement, and SVGScriptElement only accepts valid values, and `""` isn't, `null` has to be used instead ([Firefox bug 880997](https://bugzil.la/880997)). - The Resource Timing API has been activated by default ([Firefox bug 1002855](https://bugzil.la/
Firefox 132 release notes for developers
09028](https://bugzil.la/1809028)). - The `fetchpriority` attribute of the link, script, and img elements, the `fetchPriority` property of the HTMLLinkElement, HTMLScriptElement, and HTMLImageElement interfaces, the [`options.priority`](/docs/Web/API/RequestInit#priority) parameter passed to the [`Request()` constructor](/docs/Web/API/Request/Request), and the `fetchpriority` directive in the HTTP Link header, are no
Using modules on the web
map](/docs/Web/HTML/Reference/Elements/script/type/importmap#integrity_metadata_map). ### Feature detection You can check support for import maps using the [`HTMLScriptElement.supports()`](/docs/Web/API/HTMLScriptElement/supports_static) static method (which is itself broadly supported): ```js if (HTMLScriptElement.supports?.("importmap")) { console.log("Browser supports import maps."); } ``` ### The `imports`
` ` HTML script element
<th scope="row">Permitted ARIA roles</th> <td>No <code>role</code> permitted</td> </tr> <tr> <th scope="row">DOM interface</th> <td>HTMLScriptElement</td> </tr> </tbody> </table> ## Specifications ## Browser compatibility ## See also - document.currentScript - [Flavio Copes' article on loading JavaScript efficiently and explaining the differences between `async` and `defer`](
` ` HTML attribute value
tion Below is an example that feature detects speculation rules and, if supported, dynamically adds a prerender speculation rule via JavaScript: ```js if ( HTMLScriptElement.supports && HTMLScriptElement.supports("speculationrules") ) { const specScript = document.createElement("script"); specScript.type = "speculationrules"; const specRules = { prerender: [ { urls: ["/next.html"],