diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index 21cfe12f..58e060e3 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -317,8 +317,8 @@ new function() { // Does not support x/y attribute or tspan positioning beyond left justified. var lines = []; var spacing = 1.2; - for (var i = 0; i < node.children.length; i++) { - var child = node.children[i]; + for (var i = 0; i < node.childNodes.length; i++) { + var child = node.childNodes[i]; lines.push(child.textContent); var dyString = child.getAttribute('dy'); if (dyString) {