SVGSVGElement.children not working in IE11?

I have a very simple jsfiddle here:

http://jsfiddle.net/9uS3u/

It consists of this html:

<svg></svg>

And this javascript:

alert(document.getElementsByTagName("svg")[0].children);

I expect it to warn something like "[Object HtmlCollection]". In IE 11, it gives "undefined". It seems that the property is childrennot defined on SVGSVGElement, despite claims on the Internet that IE 11 supports svg. What gives?

+4
source share
2 answers

, , children DOM, childNodes Node, children ( Element interface). ( children childNodes), .

+9

svg IE SVGGElement, , children HTMLCollection. , , SVG HTMLCollections. IE SVG -, , , , SVG .

+2

Source: https://habr.com/ru/post/1532422/


All Articles