Skip to content

Commit

Permalink
Update Unsafe methods to use HTMLString IDL type from Trusted Types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored and annevk committed Apr 4, 2024
1 parent 7794b23 commit a63f622
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ markup, and an optional configuration.

<pre class=idl>
partial interface Element {
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(HTMLString html, optional SanitizerConfig config = {});
[CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
};
</pre>
Expand Down Expand Up @@ -135,7 +135,7 @@ we'll rename them here by appending `__TO_BE_MERGED` to those names.

<pre class=idl>
partial interface ShadowRoot {
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
[CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(HTMLString html, optional SanitizerConfig config = {});
[CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
};
</pre>
Expand Down Expand Up @@ -163,7 +163,7 @@ The {{Document}} interface gains two new methods which parse an entire {{Documen

<pre class=idl>
partial interface Document {
static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
static Document parseHTMLUnsafe__TO_BE_MERGED(HTMLString html, optional SanitizerConfig config = {});
static Document parseHTML(DOMString html, optional SanitizerConfig config = {});
};
</pre>
Expand Down

0 comments on commit a63f622

Please # to comment.