diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index a9f596a9f..d47844680 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2762,6 +2762,10 @@ interface SetHTMLOptions { sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; } +interface SetHTMLUnsafeOptions { + sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; +} + interface ShadowRootInit { clonable?: boolean; customElementRegistry?: CustomElementRegistry | null; @@ -13656,7 +13660,7 @@ declare var Document: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ - parseHTMLUnsafe(html: string): Document; + parseHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): Document; }; /** @@ -14426,7 +14430,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; /** * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired). * @@ -36058,7 +36062,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 30ad8bd55..942dce9d3 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2759,6 +2759,10 @@ interface SetHTMLOptions { sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; } +interface SetHTMLUnsafeOptions { + sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; +} + interface ShadowRootInit { clonable?: boolean; customElementRegistry?: CustomElementRegistry | null; @@ -13645,7 +13649,7 @@ declare var Document: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ - parseHTMLUnsafe(html: string): Document; + parseHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): Document; }; /** @@ -14413,7 +14417,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; /** * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired). * @@ -36033,7 +36037,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 4f08212b7..7f4d59599 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2759,6 +2759,10 @@ interface SetHTMLOptions { sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; } +interface SetHTMLUnsafeOptions { + sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; +} + interface ShadowRootInit { clonable?: boolean; customElementRegistry?: CustomElementRegistry | null; @@ -13653,7 +13657,7 @@ declare var Document: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ - parseHTMLUnsafe(html: string): Document; + parseHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): Document; }; /** @@ -14423,7 +14427,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; /** * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired). * @@ -36055,7 +36059,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 9bccf9a99..f5ce580a5 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -2759,6 +2759,10 @@ interface SetHTMLOptions { sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; } +interface SetHTMLUnsafeOptions { + sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets; +} + interface ShadowRootInit { clonable?: boolean; customElementRegistry?: CustomElementRegistry | null; @@ -13653,7 +13657,7 @@ declare var Document: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ - parseHTMLUnsafe(html: string): Document; + parseHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): Document; }; /** @@ -14423,7 +14427,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; /** * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired). * @@ -36055,7 +36059,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; + setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/package-lock.json b/package-lock.json index 15cfb693f..638d88b8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1105,9 +1105,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.79.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.79.0.tgz", - "integrity": "sha512-4wZ6d0xY3JQZY1vHOCk8Z1jEPq9YVzds0VGAJtv6hJAwnxmePP20KQqETp7vXYvx/auqldLYTEHiAsAfosgMVQ==", + "version": "3.80.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.80.0.tgz", + "integrity": "sha512-TBKsgIfcCNfoR1YUXsCfsAJBFbT+eROvpvmgZZPMCBZ7kY8lUM3dutu1O/LOtp7iifn0sGsR2s8vfZUnK9SQkg==", "dev": true, "license": "MIT", "peerDependencies": {