Skip to content

Commit

Permalink
Add integration with setHTMLUnsafe and parseHTMLUnsafe (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Jan 17, 2024
1 parent e8fb14f commit 6676495
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 @@ -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
Expand All @@ -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);
};
</pre>

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

0 comments on commit 6676495

Please sign in to comment.