Skip to content

Commit 7e35cab

Browse files
authored
Update dynamic-markup-revamped-explainer.md
1 parent cef7cdc commit 7e35cab

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

dynamic-markup-revamped-explainer.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,34 +123,37 @@ interface TrustedSetHTMLUnsafeOptions {
123123
}
124124
125125
typedef (SetHTMLUnsafeOptions or TrustedHTMLParserOptions) UnsafeHTMLSetterOptions;
126-
typedef (SetHTMLOptions or TrustedHTMLParserOptions) SafeHTMLSetterOptions;
127126
128127
[Exposed=Window]
129128
mixin interface ElementOrShadowRoot {
130-
void setHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
129+
void setHTML(DOMString html, SetHTML options);
131130
void setHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
132-
void beforeHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
133-
void beforeHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
134-
void afterHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
135-
void afterHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
136-
void appendHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
131+
void appendHTML(DOMString html, SetHTMLOptions options);
137132
void appendHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
138-
void prependHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
133+
void prependHTML(DOMString html, SetHTMLOptions options);
139134
void prependHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
140-
void replaceWithHTML((DOMString or TrustedHTML) html, SafeHTMLSetterOptions options);
141-
void replaceWithHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
142-
WritableStream streamHTML(SafeHTMLSetterOptions options);
135+
WritableStream streamHTML(SetHTMLOptions options);
143136
WritableStream streamHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
144-
WritableStream streamBeforeHTML(SafeHTMLSetterOptions options);
145-
WritableStream streamBeforeHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
146-
WritableStream streamAfterHTML(SafeHTMLSetterOptions options);
147-
WritableStream streamAfterHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
148-
WritableStream streamAppendHTML(SafeHTMLSetterOptions options);
137+
WritableStream streamAppendHTML(SetHTMLOptions options);
149138
WritableStream streamAppendHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
150-
WritableStream streamPrependHTML(SafeHTMLSetterOptions options);
139+
WritableStream streamPrependHTML(SetHTMLOptions options);
151140
WritableStream streamPrependHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
152-
WritableStream streamReplaceWithHTML(SafeHTMLSetterOptions options);
141+
};
142+
143+
[Exposed=Window]
144+
mixin interface ChildNode {
145+
void beforeHTML(DOMString html, SetHTMLOptions options);
146+
void beforeHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
147+
void afterHTML(DOMString html, SetHTMLOptions options);
148+
void afterHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
149+
void replaceWithHTML(DOMString html, SetHTMLOptions options);
150+
void replaceWithHTMLUnsafe((DOMString or TrustedHTML) html, optional UnsafeHTMLSetterOptions options = {});
151+
WritableStream streamReplaceWithHTML(SetHTMLOptions options);
153152
WritableStream streamReplaceWithHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
153+
WritableStream streamBeforeHTML(SetHTMLOptions options);
154+
WritableStream streamBeforeHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
155+
WritableStream streamAfterHTML(SetHTMLOptions options);
156+
WritableStream streamAfterHTMLUnsafe(optional UnsafeHTMLSetterOptions options = {});
154157
};
155158
```
156159

0 commit comments

Comments
 (0)