Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration with setHTMLUnsafe and parseHTMLUnsafe #406

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading