LibWeb: Add textContent attribute of HTMLScriptElement for TrustedTypes

This commit is contained in:
Tete17 2025-08-06 14:13:09 +02:00 committed by Jelle Raaijmakers
commit 6b9c44390f
Notes: github-actions[bot] 2025-09-16 08:58:51 +00:00
4 changed files with 42 additions and 10 deletions

View file

@ -65,6 +65,9 @@ public:
TrustedTypes::TrustedScriptURLOrString src() const { return Utf16String::from_utf8(get_attribute_value(AttributeNames::src)); }
WebIDL::ExceptionOr<void> set_src(TrustedTypes::TrustedScriptURLOrString);
Variant<GC::Root<TrustedTypes::TrustedScript>, Utf16String, Empty> text_content() const;
WebIDL::ExceptionOr<void> set_text_content(TrustedTypes::TrustedScriptOrString);
[[nodiscard]] bool async() const;
void set_async(bool);