Closed
Description
document.currentScript
is returning null | HTMLScriptElement | SVGScriptElement
per https://html.spec.whatwg.org/multipage/dom.html#dom-document-currentscript
the definition has it:
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot {
readonly currentScript: HTMLScriptElement | SVGScriptElement;
}
please fix