@@ -2254,12 +2254,12 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
2254
2254
* @param elementId String that specifies the ID value. Case-insensitive.
2255
2255
*/
2256
2256
getElementById(elementId: string): HTMLElement;
2257
- getElementsByClassName(classNames: string): NodeList ;
2257
+ getElementsByClassName(classNames: string): NodeListOf<Element> ;
2258
2258
/**
2259
2259
* Gets a collection of objects based on the value of the NAME or ID attribute.
2260
2260
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
2261
2261
*/
2262
- getElementsByName(elementName: string): NodeList ;
2262
+ getElementsByName(elementName: string): NodeListOf<Element> ;
2263
2263
/**
2264
2264
* Retrieves a collection of objects based on the specified element name.
2265
2265
* @param name Specifies the name of an element.
@@ -2437,8 +2437,8 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
2437
2437
getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>;
2438
2438
getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
2439
2439
getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLBlockElement>;
2440
- getElementsByTagName(tagname: string): NodeList ;
2441
- getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList ;
2440
+ getElementsByTagName(tagname: string): NodeListOf<Element> ;
2441
+ getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element> ;
2442
2442
/**
2443
2443
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
2444
2444
*/
@@ -2892,8 +2892,8 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
2892
2892
getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
2893
2893
getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
2894
2894
getElementsByTagName(name: "xmp"): NodeListOf<HTMLBlockElement>;
2895
- getElementsByTagName(name: string): NodeList ;
2896
- getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList ;
2895
+ getElementsByTagName(name: string): NodeListOf<Element> ;
2896
+ getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element> ;
2897
2897
hasAttribute(name: string): boolean;
2898
2898
hasAttributeNS(namespaceURI: string, localName: string): boolean;
2899
2899
msGetRegionContent(): MSRangeCollection;
@@ -3903,7 +3903,7 @@ interface HTMLElement extends Element {
3903
3903
contains(child: HTMLElement): boolean;
3904
3904
dragDrop(): boolean;
3905
3905
focus(): void;
3906
- getElementsByClassName(classNames: string): NodeList ;
3906
+ getElementsByClassName(classNames: string): NodeListOf<Element> ;
3907
3907
insertAdjacentElement(position: string, insertedElement: Element): Element;
3908
3908
insertAdjacentHTML(where: string, html: string): void;
3909
3909
insertAdjacentText(where: string, text: string): void;
@@ -12487,7 +12487,7 @@ interface NavigatorStorageUtils {
12487
12487
12488
12488
interface NodeSelector {
12489
12489
querySelector(selectors: string): Element;
12490
- querySelectorAll(selectors: string): NodeList ;
12490
+ querySelectorAll(selectors: string): NodeListOf<Element> ;
12491
12491
}
12492
12492
12493
12493
interface RandomSource {
0 commit comments