Skip to content

Commit

Permalink
Merge 8aadfcb into 947ecf9
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeangstadt committed Nov 30, 2016
2 parents 947ecf9 + 8aadfcb commit 864f6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vdom/patch-op.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function insertNode(parentNode, vNode, renderOptions) {
function stringPatch(domNode, leftVNode, vText, renderOptions) {
var newNode

if (domNode.nodeType === 3) {
if (domNode.nodeType === 3 && domNode.parentNode !== null) {
domNode.replaceData(0, domNode.length, vText.text)
newNode = domNode
} else {
Expand Down

0 comments on commit 864f6e6

Please sign in to comment.