LibWeb: Extend set_text of HTMLScriptElement to accommodate TrustedTypes

This commit is contained in:
Tete17 2025-08-05 21:58:13 +02:00 committed by Jelle Raaijmakers
parent b4df857a57
commit 664a3b536a
Notes: github-actions[bot] 2025-09-16 08:59:04 +00:00
7 changed files with 46 additions and 3 deletions

View file

@ -18,7 +18,8 @@ interface HTMLScriptElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString integrity;
[CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
[CEReactions] attribute Utf16DOMString text;
// https://www.w3.org/TR/trusted-types/#enforcement-in-scripts
[CEReactions] attribute (TrustedScript or Utf16DOMString) text;
static boolean supports(DOMString type);