diff options
Diffstat (limited to 'testing/web-platform/tests/interfaces/sanitizer-api.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/sanitizer-api.idl | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/testing/web-platform/tests/interfaces/sanitizer-api.idl b/testing/web-platform/tests/interfaces/sanitizer-api.idl index 599d8f82ea..8f5c667973 100644 --- a/testing/web-platform/tests/interfaces/sanitizer-api.idl +++ b/testing/web-platform/tests/interfaces/sanitizer-api.idl @@ -3,19 +3,15 @@ // (https://github.com/w3c/webref) // Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/) -partial interface Element { - [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {}); +dictionary SetHTMLOptions { + (Sanitizer or SanitizerConfig) sanitizer = {}; }; -partial interface ShadowRoot { - [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {}); -}; - -partial interface Document { - static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {}); - static Document parseHTML(DOMString html, optional SanitizerConfig config = {}); +[Exposed=(Window,Worker)] +interface Sanitizer { + constructor(optional SanitizerConfig config = {}); + SanitizerConfig get(); + SanitizerConfig getUnsafe(); }; dictionary SanitizerElementNamespace { |