Use childNodes instead of children

This commit is contained in:
Paul Kaplan 2018-06-14 11:40:56 -04:00 committed by GitHub
parent aac34afbc8
commit 9065cad302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {