|
|
@@ -547,9 +547,11 @@ export default class DomConverter {
|
|
|
return this.getCorrespondingDomElement( viewNode );
|
|
|
} else if ( viewNode instanceof ViewDocumentFragment ) {
|
|
|
return this.getCorrespondingDomDocumentFragment( viewNode );
|
|
|
- } else {
|
|
|
+ } else if ( viewNode instanceof ViewText ) {
|
|
|
return this.getCorrespondingDomText( viewNode );
|
|
|
}
|
|
|
+
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -598,7 +600,7 @@ export default class DomConverter {
|
|
|
}
|
|
|
|
|
|
// Try to use parent to find the corresponding text node.
|
|
|
- if ( !previousSibling && this.getCorrespondingDom( viewText.parent ) ) {
|
|
|
+ if ( viewText.parent && this.getCorrespondingDom( viewText.parent ) ) {
|
|
|
return this.getCorrespondingDom( viewText.parent ).childNodes[ 0 ];
|
|
|
}
|
|
|
|