Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ interface AuthenticationExtensionsClientInputs {
largeBlob?: AuthenticationExtensionsLargeBlobInputs;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputs;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientInputsJSON {
appid?: string;
credProps?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
prf?: AuthenticationExtensionsPRFInputsJSON;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientOutputs {
Expand All @@ -219,13 +221,15 @@ interface AuthenticationExtensionsClientOutputs {
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
prf?: AuthenticationExtensionsPRFOutputs;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsLargeBlobInputs {
Expand Down Expand Up @@ -2751,6 +2755,10 @@ interface SerialPortRequestOptions {
filters?: SerialPortFilter[];
}

interface SetHTMLOptions {
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
}

interface ShadowRootInit {
clonable?: boolean;
customElementRegistry?: CustomElementRegistry | null;
Expand Down Expand Up @@ -14142,6 +14150,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
*/
setAttributeNodeNS(attr: Attr): Attr | null;
/**
* The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
*/
setHTML(html: string, options?: SetHTMLOptions): void;
/**
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
*
Expand Down Expand Up @@ -17987,7 +18001,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/**
* The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
*
Expand Down Expand Up @@ -20312,7 +20326,7 @@ declare var HTMLOptionsCollection: {
new(): HTMLOptionsCollection;
};

interface HTMLOrSVGElement {
interface HTMLOrSVGOrMathMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
Expand Down Expand Up @@ -24036,7 +24050,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
*/
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -26033,6 +26047,7 @@ declare var NavigationPreloadManager: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
*/
interface NavigationTransition {
/** The **`committed`** read-only property of the NavigationTransition interface returns a Promise that fulfills when Navigation.currentEntry is updated and the new URL is displayed in the browser, marking the navigation as committed. This happens after all precommit handlers for the navigation are fulfilled. */
readonly committed: Promise<void>;
/**
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
Expand Down Expand Up @@ -31828,7 +31843,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/** @deprecated */
readonly className: any;
/**
Expand Down
23 changes: 19 additions & 4 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ interface AuthenticationExtensionsClientInputs {
largeBlob?: AuthenticationExtensionsLargeBlobInputs;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputs;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientInputsJSON {
appid?: string;
credProps?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
prf?: AuthenticationExtensionsPRFInputsJSON;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientOutputs {
Expand All @@ -216,13 +218,15 @@ interface AuthenticationExtensionsClientOutputs {
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
prf?: AuthenticationExtensionsPRFOutputs;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsLargeBlobInputs {
Expand Down Expand Up @@ -2748,6 +2752,10 @@ interface SerialPortRequestOptions {
filters?: SerialPortFilter[];
}

interface SetHTMLOptions {
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
}

interface ShadowRootInit {
clonable?: boolean;
customElementRegistry?: CustomElementRegistry | null;
Expand Down Expand Up @@ -14129,6 +14137,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
*/
setAttributeNodeNS(attr: Attr): Attr | null;
/**
* The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
*/
setHTML(html: string, options?: SetHTMLOptions): void;
/**
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
*
Expand Down Expand Up @@ -17971,7 +17985,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/**
* The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
*
Expand Down Expand Up @@ -20291,7 +20305,7 @@ declare var HTMLOptionsCollection: {
new(): HTMLOptionsCollection;
};

interface HTMLOrSVGElement {
interface HTMLOrSVGOrMathMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
Expand Down Expand Up @@ -24012,7 +24026,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
*/
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -26009,6 +26023,7 @@ declare var NavigationPreloadManager: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
*/
interface NavigationTransition {
/** The **`committed`** read-only property of the NavigationTransition interface returns a Promise that fulfills when Navigation.currentEntry is updated and the new URL is displayed in the browser, marking the navigation as committed. This happens after all precommit handlers for the navigation are fulfilled. */
readonly committed: Promise<void>;
/**
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
Expand Down Expand Up @@ -31803,7 +31818,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/** @deprecated */
readonly className: any;
/**
Expand Down
23 changes: 19 additions & 4 deletions baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ interface AuthenticationExtensionsClientInputs {
largeBlob?: AuthenticationExtensionsLargeBlobInputs;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputs;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientInputsJSON {
appid?: string;
credProps?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
prf?: AuthenticationExtensionsPRFInputsJSON;
remoteClientDataJSON?: string;
}

interface AuthenticationExtensionsClientOutputs {
Expand All @@ -216,13 +218,15 @@ interface AuthenticationExtensionsClientOutputs {
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
prf?: AuthenticationExtensionsPRFOutputs;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
remoteClientDataJson?: boolean;
}

interface AuthenticationExtensionsLargeBlobInputs {
Expand Down Expand Up @@ -2748,6 +2752,10 @@ interface SerialPortRequestOptions {
filters?: SerialPortFilter[];
}

interface SetHTMLOptions {
sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
}

interface ShadowRootInit {
clonable?: boolean;
customElementRegistry?: CustomElementRegistry | null;
Expand Down Expand Up @@ -14139,6 +14147,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
*/
setAttributeNodeNS(attr: Attr): Attr | null;
/**
* The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
*/
setHTML(html: string, options?: SetHTMLOptions): void;
/**
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
*
Expand Down Expand Up @@ -17984,7 +17998,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/**
* The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
*
Expand Down Expand Up @@ -20309,7 +20323,7 @@ declare var HTMLOptionsCollection: {
new(): HTMLOptionsCollection;
};

interface HTMLOrSVGElement {
interface HTMLOrSVGOrMathMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
Expand Down Expand Up @@ -24033,7 +24047,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
*/
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -26030,6 +26044,7 @@ declare var NavigationPreloadManager: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
*/
interface NavigationTransition {
/** The **`committed`** read-only property of the NavigationTransition interface returns a Promise that fulfills when Navigation.currentEntry is updated and the new URL is displayed in the browser, marking the navigation as committed. This happens after all precommit handlers for the navigation are fulfilled. */
readonly committed: Promise<void>;
/**
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
Expand Down Expand Up @@ -31825,7 +31840,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
/** @deprecated */
readonly className: any;
/**
Expand Down
Loading
Loading