diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-04 21:35:21 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-04 21:35:21 +1000 |
commit | c8cb22863bf8c3ac157f6098be9154908aea9ec2 (patch) | |
tree | b27b1bf6ec4c90bbd0cb335e26bb9ece504285d2 /src/polyfills | |
parent | 59f09a1a2317e57d13bbe8f60e1949cc82199ead (diff) | |
download | svg.js-c8cb22863bf8c3ac157f6098be9154908aea9ec2.tar.gz svg.js-c8cb22863bf8c3ac157f6098be9154908aea9ec2.zip |
Fixed IE Polyfills, got rid of ArrayPolyfill in favour of babels own transforms, updated dependencies, finished tests, removed old es5 tests
Diffstat (limited to 'src/polyfills')
-rw-r--r-- | src/polyfills/innerHTML.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/polyfills/innerHTML.js b/src/polyfills/innerHTML.js index 4be7f1b..138277e 100644 --- a/src/polyfills/innerHTML.js +++ b/src/polyfills/innerHTML.js @@ -13,18 +13,18 @@ output.push('<', node.tagName) if (node.hasAttributes()) { [].forEach.call(node.attributes, function (attrNode) { - output.push(' ', attrNode.name, '=\'', attrNode.value, '\'') + output.push(' ', attrNode.name, '="', attrNode.value, '"') }) } + output.push('>') if (node.hasChildNodes()) { - output.push('>'); [].forEach.call(node.childNodes, function (childNode) { serializeXML(childNode, output) }) - output.push('</', node.tagName, '>') } else { - output.push('/>') + // output.push('/>') } + output.push('</', node.tagName, '>') } else if (nodeType === 8) { output.push('<!--', node.nodeValue, '-->') } |