diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index c4d70b0d3..305839469 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -13703,6 +13703,12 @@ interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFace declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -29822,6 +29828,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -36174,6 +36181,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index a2d11c599..51789b219 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -13692,6 +13692,12 @@ interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFace declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -29798,6 +29804,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -36149,6 +36156,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 48d02108d..edd7f9a53 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -13700,6 +13700,12 @@ interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFace declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -29819,6 +29825,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -36171,6 +36178,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 8323e0df0..2c14f0481 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -13700,6 +13700,12 @@ interface Document extends Node, ARIANotifyMixin, DocumentOrShadowRoot, FontFace declare var Document: { prototype: Document; new(): Document; + /** + * The **`parseHTML()`** static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTML_static) + */ + parseHTML(html: string, options?: SetHTMLOptions): Document; /** * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * @@ -29819,6 +29825,7 @@ interface RTCDtlsTransport extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -36171,6 +36178,12 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ getHTML(options?: GetHTMLOptions): string; + /** + * The **`setHTML()`** method of the ShadowRoot interface provides an XSS-safe method to parse and sanitize a string of HTML, which then replaces the existing tree in the Shadow DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTML) + */ + setHTML(html: string, options?: SetHTMLOptions): void; /** * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM. * diff --git a/package-lock.json b/package-lock.json index 4e1324035..1562f2992 100644 --- a/package-lock.json +++ b/package-lock.json @@ -365,9 +365,9 @@ "license": "MIT" }, "node_modules/@mdn/browser-compat-data": { - "version": "8.0.6", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.6.tgz", - "integrity": "sha512-MSn1Xz9EQyV7A/6Rx8HFCxUFKbcU7VSfo9lcxzd32658YTy0U42NBf3CRiXiSBmTFVB8quj1FrhRfnXmf2JLOQ==", + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.0.7.tgz", + "integrity": "sha512-8/oqL9veg9C6d0wKprPmt+ZCmfNKBG4AcphWh50E9r1IflJHZfZKHu7c5G7ObupYG6azAXr3KdBX0EssnjCPSQ==", "dev": true, "license": "CC0-1.0" },