From 11704ce6adb2d01f59d1d8cdfb7357b1012f4d6e Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Mon, 15 Jan 2024 19:51:59 +0000 Subject: [PATCH] Add integration with setHTMLUnsafe and parseHTMLUnsafe --- spec/index.bs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/index.bs b/spec/index.bs index 1d5c4cc..207b99e 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1447,6 +1447,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 @@ -1457,11 +1458,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}