domvm bug: creating unrelated DOM elements interferes with redraw()
Test case for issue: https://github.com/leeoniya/domvm/issues/170
by jlgrall
HTML
<script src="https://rawgit.com/leeoniya/domvm/3.0.6/dist/dev/domvm.dev.js"></script>
JavaScript
var el = domvm.defineElement;
window.vm = domvm.createView({
render: function(vm) {
return el("#hello", "See your console log...");
}
}).mount(document.body);
console.log("Now the vm is mounted, and it won't change. Thus, a redraw() should not create any new element.");
console.log("But if I create an unrelated element (not even inserting it in the DOM),");
document.createElement("div");
console.log("then a redraw will show that an element has been created, but it shouldn't.");
vm.redraw();