From 9065cad302a5581cb58a84212ccf56856053ccbe Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Thu, 14 Jun 2018 11:40:56 -0400 Subject: [PATCH] Use childNodes instead of children --- src/svg/SvgImport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {