Skip to content

Commit 546df06

Browse files
committed
1 parent 2d6e896 commit 546df06

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

baselines/dom.generated.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4769,11 +4769,11 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
47694769
* Returns a reference to the first object with the specified value of the ID or NAME attribute.
47704770
* @param elementId String that specifies the ID value. Case-insensitive.
47714771
*/
4772-
getElementById<E extends Element = Element>(elementId: string): E | null;
4772+
getElementById<E extends Element = HTMLElement>(elementId: string): E | null;
47734773
/**
47744774
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
47754775
*/
4776-
getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>;
4776+
getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>;
47774777
/**
47784778
* Gets a collection of objects based on the value of the NAME or ID attribute.
47794779
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
@@ -4968,7 +4968,7 @@ interface DocumentEvent {
49684968
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
49694969
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
49704970
readonly ownerDocument: Document;
4971-
getElementById<E extends Element = Element>(elementId: string): E | null;
4971+
getElementById<E extends Element = HTMLElement>(elementId: string): E | null;
49724972
}
49734973

49744974
declare var DocumentFragment: {
@@ -5155,7 +5155,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
51555155
/**
51565156
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
51575157
*/
5158-
getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>;
5158+
getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>;
51595159
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
51605160
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
51615161
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
@@ -11031,7 +11031,7 @@ interface NonElementParentNode {
1103111031
/**
1103211032
* Returns the first element within node's descendants whose ID is elementId.
1103311033
*/
11034-
getElementById<E extends Element = Element>(elementId: string): E | null;
11034+
getElementById<E extends Element = HTMLElement>(elementId: string): E | null;
1103511035
}
1103611036

1103711037
interface NotificationEventMap {
@@ -14348,7 +14348,7 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB
1434814348
forceRedraw(): void;
1434914349
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
1435014350
getCurrentTime(): number;
14351-
getElementById<E extends Element = Element>(elementId: string): E | null;
14351+
getElementById<E extends Element = HTMLElement>(elementId: string): E | null;
1435214352
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
1435314353
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
1435414354
pauseAnimations(): void;

inputfiles/addedTypes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@
620620
"getElementsByClassName": {
621621
"name": "getElementsByClassName",
622622
"override-signatures": [
623-
"getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>"
623+
"getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>"
624624
]
625625
},
626626
"closest": {
@@ -1022,7 +1022,7 @@
10221022
"name": "getElementById",
10231023
"exposed": "Window",
10241024
"override-signatures": [
1025-
"getElementById<E extends Element = Element>(elementId: string): E | null"
1025+
"getElementById<E extends Element = HTMLElement>(elementId: string): E | null"
10261026
]
10271027
}
10281028
}

inputfiles/overridingTypes.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"getElementById": {
99
"name": "getElementById",
1010
"override-signatures": [
11-
"getElementById<E extends Element = Element>(elementId: string): E | null"
11+
"getElementById<E extends Element = HTMLElement>(elementId: string): E | null"
1212
]
1313
}
1414
}
@@ -541,7 +541,7 @@
541541
"getElementById": {
542542
"name": "getElementById",
543543
"override-signatures": [
544-
"getElementById<E extends Element = Element>(elementId: string): E | null"
544+
"getElementById<E extends Element = HTMLElement>(elementId: string): E | null"
545545
]
546546
},
547547
"elementsFromPoint": {
@@ -561,7 +561,7 @@
561561
"getElementsByClassName": {
562562
"name": "getElementsByClassName",
563563
"override-signatures": [
564-
"getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>"
564+
"getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>"
565565
]
566566
},
567567
"getElementsByName": {
@@ -983,7 +983,7 @@
983983
"getElementById": {
984984
"name": "getElementById",
985985
"override-signatures": [
986-
"getElementById<E extends Element = Element>(elementId: string): E | null"
986+
"getElementById<E extends Element = HTMLElement>(elementId: string): E | null"
987987
]
988988
},
989989
"getEnclosureList": {

0 commit comments

Comments
 (0)