⚙ Compilation target
ESNext
⚙ Library
6.0.0
Missing / Incorrect Definition
override is missing for the createElementNS in case provide "http://www.w3.org/1999/xhtml" as namespaceURI.
// missing createElementNS<K extends keyof HTMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: K): HTMLElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
Sample Code
document.createElementNS("http://www.w3.org/1999/xhtml", 'div'); // HTMLElement instead of HTMLDivElement
Documentation Link
No response
⚙ Compilation target
ESNext
⚙ Library
6.0.0
Missing / Incorrect Definition
override is missing for the
createElementNSin case provide"http://www.w3.org/1999/xhtml"asnamespaceURI.Sample Code
Documentation Link
No response