Skip to content

Commit

Permalink
Fix uneditable subsequent element remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Jun 16, 2014
1 parent 8e36a6e commit a45bcf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dom/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ wysihtml5.dom.parse = (function() {
if (oldChilds[i]) {
newChild = _convert(oldChilds[i], cleanUp);
if (newChild) {
if (oldChilds[i] === newChild) {
i--;
}
fragment.insertBefore(newChild, fragment.firstChild);
}
}
Expand Down Expand Up @@ -172,6 +175,9 @@ wysihtml5.dom.parse = (function() {
if (oldChilds[i]) {
newChild = _convert(oldChilds[i], cleanUp);
if (newChild) {
if (oldChilds[i] === newChild) {
i--;
}
newNode.appendChild(newChild);
}
}
Expand Down

0 comments on commit a45bcf0

Please sign in to comment.