Element or EventTarget that can be passed into functions.
The difference between a native Element and this is an Element is the base class for HTMLElement and SVGElement, whereas an ElementLike could represent a HTMLElement, a SVGElement, the Document, or the element representation of an EventTarget.
Element
ElementLike
Tag name of Element.
Element or EventTarget that can be passed into functions.
The difference between a native Element and this is an
Element
is the base class for HTMLElement and SVGElement, whereas anElementLike
could represent a HTMLElement, a SVGElement, the Document, or the element representation of an EventTarget.