Implement HTMLScriptElement.supports(type) method
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: horo, Assigned: evilpie)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.20 Safari/537.36
Steps to reproduce:
HTMLScriptElement.supports('classic')
Actual results:
Throws an error:
Uncaught TypeError: HTMLScriptElement.supports is not a function
Expected results:
Returns true.
HTMLScriptElement.supports(type) method was introduced by the recent spec change.
https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports
https://github.com/whatwg/html/pull/7008
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Tests should come in the next sync from https://github.com/web-platform-tests/wpt/commit/e02f4a5db0a268cb888edf0abbf90eff3cd98d3a.
Assignee | ||
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
Thanks Tom for picking this up! \o/
Rationale for priority/severity: this isn't immediately important, but will become more important over time as 1) we implement other features, such as Import Maps, and 2) websites adopt it.
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/fed5c082061b Implement HTMLScriptElement.supports(type) method. r=smaug
Comment 6•2 years ago
|
||
bugherder |
Comment 7•2 years ago
|
||
FYI MDN docs for this in the FF94 release can be tracked in https://github.com/mdn/content/issues/9365 - mostly this is just a page for the method, browser compatibility update, and a release note.
Feedback welcome on the initial docs, which have been created here: https://github.com/mdn/content/pull/9549
There isn't all that much to say about this yet since it won't become all that useful until you add support for some more script types.
Updated•2 years ago
|
Description
•