diff options
Diffstat (limited to 'components/script_bindings/webidls')
-rw-r--r-- | components/script_bindings/webidls/HTMLScriptElement.webidl | 8 | ||||
-rw-r--r-- | components/script_bindings/webidls/ShadowRoot.webidl | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/components/script_bindings/webidls/HTMLScriptElement.webidl b/components/script_bindings/webidls/HTMLScriptElement.webidl index 6f02bb3cf47..2c7b398b7e3 100644 --- a/components/script_bindings/webidls/HTMLScriptElement.webidl +++ b/components/script_bindings/webidls/HTMLScriptElement.webidl @@ -21,8 +21,12 @@ interface HTMLScriptElement : HTMLElement { attribute boolean defer; [CEReactions] attribute DOMString? crossOrigin; - [CEReactions, Pure] - attribute DOMString text; + [CEReactions, SetterThrows] + attribute (TrustedScript or DOMString) innerText; + [CEReactions, Pure, SetterThrows] + attribute (TrustedScript or DOMString) text; + [CEReactions, SetterThrows] + attribute (TrustedScript or DOMString)? textContent; [CEReactions] attribute DOMString integrity; [CEReactions] diff --git a/components/script_bindings/webidls/ShadowRoot.webidl b/components/script_bindings/webidls/ShadowRoot.webidl index 6e3f2032294..cb0926afc10 100644 --- a/components/script_bindings/webidls/ShadowRoot.webidl +++ b/components/script_bindings/webidls/ShadowRoot.webidl @@ -25,7 +25,7 @@ ShadowRoot includes DocumentOrShadowRoot; // https://html.spec.whatwg.org/multipage/#dom-parsing-and-serialization partial interface ShadowRoot { - // [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html); + [CEReactions] undefined setHTMLUnsafe(DOMString html); DOMString getHTML(optional GetHTMLOptions options = {}); // [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML; |