From 6676495f3ab468ab003ee86a6d475936a584d54c Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Wed, 17 Jan 2024 15:09:28 +0000 Subject: [PATCH] Add integration with setHTMLUnsafe and parseHTMLUnsafe (#406) --- spec/index.bs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/index.bs b/spec/index.bs index e859b3e..1b91dda 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1439,6 +1439,7 @@ This document modifies the following interfaces defined by [[DOM-Parsing]]: partial interface Element { [CEReactions, LegacyNullToEmptyString] attribute HTMLString outerHTML; [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text); + [CEReactions] undefined setHTMLUnsafe(HTMLString html); }; partial interface mixin InnerHTML { // specified in a draft version at https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin @@ -1449,11 +1450,19 @@ partial interface Range { [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment); }; +partial interface ShadowRoot { + [CEReactions] undefined setHTMLUnsafe(HTMLString html); +}; + [Exposed=Window] interface DOMParser { constructor(); [NewObject] Document parseFromString(HTMLString str, SupportedType type); }; + +partial interface Document { + static Document parseHTMLUnsafe(HTMLString html); +}; ## Integration with execCommand ## {#integration-with-exec-command}