feat(script): add Supports() to htmlscriptelement (#37313)

Add static method `Supports` to `HTMLScriptElement`.

Part of #37262
Testing: relative WPT tests should become `PASS`

Signed-off-by: Jason Tsai <git@pews.dev>
This commit is contained in:
Jason Tsai 2025-06-07 16:00:02 +09:00 committed by GitHub
parent 352e4bfcf1
commit 47f9fbd8c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 21 deletions

View file

@ -1,15 +0,0 @@
[script-supports.html]
[Type of HTMLScriptElement.supports is function]
expected: FAIL
[HTMLScriptElement.supports resurns true for 'classic']
expected: FAIL
[HTMLScriptElement.supports resurns true for 'module']
expected: FAIL
[HTMLScriptElement.supports returns false for JavaScript MIME types]
expected: FAIL
[HTMLScriptElement.supports returns false for unsupported types]
expected: FAIL