fix tree walker on YXmlFragment

This commit is contained in:
Kevin Jahns 2017-12-14 14:29:16 +01:00
parent 85492ad2e0
commit d61bbecf4e

View File

@ -55,7 +55,7 @@ class YXmlTreeWalker {
}
}
do {
if (!n._deleted && n.constructor === YXmlFragment._YXmlElement && n._start !== null) {
if (!n._deleted && (n.constructor === YXmlFragment._YXmlElement || n.constructor === YXmlFragment) && n._start !== null) {
// walk down in the tree
n = n._start
} else {