prefer parentElement instead of parentNode

This commit is contained in:
Kevin Jahns 2018-05-09 14:42:24 +02:00
parent e56457a0ef
commit c0e630b635

View File

@ -94,7 +94,7 @@ export default function domObserver (mutations, _document) {
let parent = dom
let yParent
do {
parent = parent.parentNode
parent = parent.parentElement
yParent = this.domToType.get(parent)
} while (yParent === undefined && parent !== null)
if (yParent !== false && yParent !== undefined && yParent.constructor !== YXmlHook) {