LibWeb: Implement slot validation for HTMLScriptElement

This should be the last section missing in the TrustedType spec.
This commit is contained in:
Tete17 2025-10-29 15:20:33 +01:00 committed by Jelle Raaijmakers
parent 1d1182cad8
commit 901afee50b
Notes: github-actions[bot] 2025-12-01 08:55:48 +00:00
6 changed files with 567 additions and 33 deletions

View file

@ -92,6 +92,9 @@ private:
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
// https://www.w3.org/TR/trusted-types/#prepare-script-text
WebIDL::ExceptionOr<void> prepare_script_text();
// https://html.spec.whatwg.org/multipage/scripting.html#prepare-the-script-element
void prepare_script();