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

Missing integration with new unsafe HTML parsing methods #403

Closed
lukewarlow opened this issue Jan 15, 2024 · 1 comment · Fixed by #406
Closed

Missing integration with new unsafe HTML parsing methods #403

lukewarlow opened this issue Jan 15, 2024 · 1 comment · Fixed by #406

Comments

@lukewarlow
Copy link
Member

See https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#unsafe-html-parsing-methods

Currently they are:

partial interface Element {
  [CEReactions] undefined setHTMLUnsafe(DOMString html);
};

partial interface ShadowRoot {
  [CEReactions] undefined setHTMLUnsafe(DOMString html);
};

They should be:

partial interface Element {
  [CEReactions] undefined setHTMLUnsafe(HTMLString html);
};

partial interface ShadowRoot {
  [CEReactions] undefined setHTMLUnsafe(HTMLString html);
};
@lukewarlow
Copy link
Member Author

Potentially also need to update parseHTMLUnsafe it's unclear to me if this actually executes anything there also appears to be a bug in the spec where the IDL for it is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant