Closed
Description
When XHTML namespace is passed into createElementNS
, a HTMLElement
should be returned. There has been a similar overload for SVG.
When XHTML namespace is passed into getElementsByTagNameNS
, a HTMLCollectionOf<HTMLElement>
should be returned. Similarly, when SVG namespace is passed into getElementsByTagNameNS
, a HTMLCollectionOf<SVGElement>
should be returned.
Also, according to the DOM Standard, getElementsByTagName
, getElementsByTagNameNS
and getElementsByClassName
should all return HTMLCollection
. Edge, Firefox and Chrome all follow the standard.
I note that there are lots of overloads for getElementsByTagName
. I am not sure whether I should do the same manually for getElementsByTagNameNS
.
TypeScript Version:
1.8.5