You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns a reference to the first object with the specified value of the ID or NAME attribute.
4770
4770
* @param elementId String that specifies the ID value. Case-insensitive.
4771
4771
*/
4772
-
getElementById<E extends Element = Element>(elementId: string): E | null;
4772
+
getElementById<E extends Element = HTMLElement>(elementId: string): E | null;
4773
4773
/**
4774
4774
* 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.
4775
4775
*/
4776
-
getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>;
4776
+
getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>;
4777
4777
/**
4778
4778
* Gets a collection of objects based on the value of the NAME or ID attribute.
4779
4779
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
@@ -4968,7 +4968,7 @@ interface DocumentEvent {
4968
4968
/** 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. */
* 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.
5157
5157
*/
5158
-
getElementsByClassName<E extends Element = Element>(classNames: string): HTMLCollectionOf<E>;
5158
+
getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>;
0 commit comments