Fix attrs loop in yXmlText

This commit is contained in:
Roeland Bosch 2019-10-15 17:07:20 +02:00 committed by GitHub
parent f4c919d9ec
commit d1063ab70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ export class YXmlText extends YText {
const node = nestedNodes[i]
str += `<${node.nodeName}`
for (let j = 0; j < node.attrs.length; j++) {
const attr = node.attrs[i]
const attr = node.attrs[j]
str += ` ${attr.key}="${attr.value}"`
}
str += '>'