@@ -3480,7 +3480,7 @@ declare var DOMMatrixReadOnly: {
3480
3480
};
3481
3481
3482
3482
interface DOMParser {
3483
- parseFromString(source : string, mimeType: string ): Document;
3483
+ parseFromString(str : string, type: SupportedType ): Document;
3484
3484
}
3485
3485
3486
3486
declare var DOMParser: {
@@ -4648,6 +4648,7 @@ interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode,
4648
4648
* change it.
4649
4649
*/
4650
4650
id: string;
4651
+ innerHTML: string;
4651
4652
/**
4652
4653
* Returns the local name.
4653
4654
*/
@@ -4656,6 +4657,7 @@ interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode,
4656
4657
* Returns the namespace.
4657
4658
*/
4658
4659
readonly namespaceURI: string | null;
4660
+ outerHTML: string;
4659
4661
/**
4660
4662
* Returns the namespace prefix.
4661
4663
*/
@@ -4775,6 +4777,10 @@ declare var Element: {
4775
4777
new(): Element;
4776
4778
};
4777
4779
4780
+ interface ElementCSSInlineStyle {
4781
+ readonly style: CSSStyleDeclaration;
4782
+ }
4783
+
4778
4784
interface ElementContentEditable {
4779
4785
contentEditable: string;
4780
4786
inputMode: string;
@@ -6016,7 +6022,7 @@ declare var HTMLDocument: {
6016
6022
interface HTMLElementEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
6017
6023
}
6018
6024
6019
- interface HTMLElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable, HTMLOrSVGElement {
6025
+ interface HTMLElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable, HTMLOrSVGElement, ElementCSSInlineStyle {
6020
6026
accessKey: string;
6021
6027
readonly accessKeyLabel: string;
6022
6028
autocapitalize: string;
@@ -11707,6 +11713,7 @@ interface Range extends AbstractRange {
11707
11713
* in the range, and 1 if the point is after the range.
11708
11714
*/
11709
11715
comparePoint(node: Node, offset: number): number;
11716
+ createContextualFragment(fragment: string): DocumentFragment;
11710
11717
deleteContents(): void;
11711
11718
detach(): void;
11712
11719
extractContents(): DocumentFragment;
@@ -12116,7 +12123,7 @@ declare var SVGDescElement: {
12116
12123
interface SVGElementEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
12117
12124
}
12118
12125
12119
- interface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement {
12126
+ interface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement, ElementCSSInlineStyle {
12120
12127
/** @deprecated */
12121
12128
readonly className: any;
12122
12129
readonly ownerSVGElement: SVGSVGElement | null;
@@ -16708,7 +16715,7 @@ declare var XMLHttpRequestUpload: {
16708
16715
};
16709
16716
16710
16717
interface XMLSerializer {
16711
- serializeToString(target : Node): string;
16718
+ serializeToString(root : Node): string;
16712
16719
}
16713
16720
16714
16721
declare var XMLSerializer: {
@@ -17705,6 +17712,7 @@ type ServiceWorkerUpdateViaCache = "imports" | "all" | "none";
17705
17712
type ShadowRootMode = "open" | "closed";
17706
17713
type SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported";
17707
17714
type SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument";
17715
+ type SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml";
17708
17716
type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
17709
17717
type TextTrackMode = "disabled" | "hidden" | "showing";
17710
17718
type TouchType = "direct" | "stylus";
0 commit comments