Skip to content

Commit

Permalink
Add integration with setHTMLUnsafe and parseHTMLUnsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Jan 15, 2024
1 parent ab8413c commit 1b8c720
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
</pre>

## Integration with execCommand ## {#integration-with-exec-command}
Expand Down

0 comments on commit 1b8c720

Please sign in to comment.