Skip to content

Commit

Permalink
html fix dom.syncElemNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Jun 11, 2018
1 parent 0159057 commit c7ee74f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/html/dom.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (d *dom) syncElemNodes(current, new *elemNode) ([]Change, error) {
}
changes = append(changes, childChange...)

curChildren = curChildren[:1]
newChildren = newChildren[:1]
}

Expand Down Expand Up @@ -301,6 +302,8 @@ func (d *dom) syncElemNodes(current, new *elemNode) ([]Change, error) {

changes = append(changes, childChanges...)
changes = append(changes, appendChildChange(current.ID(), childID))

newChildren = newChildren[:1]
}
return changes, nil
}
Expand Down

0 comments on commit c7ee74f

Please sign in to comment.