diff options
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, '-->') } |