fix ordering bug when mixing arrays with virtual elements

This commit is contained in:
Leo Horie 2014-04-11 15:23:22 -04:00
parent 12256290a9
commit 70496946cf
61 changed files with 6872 additions and 8 deletions

View file

@ -36,7 +36,7 @@ mock.window = new function() {
window.document.createTextNode = function(text) {
return {nodeValue: text.toString()}
}
window.document.documentElement = null
window.document.documentElement = window.document.createElement("html")
window.document.replaceChild = function(newChild, oldChild) {
var index = this.childNodes.indexOf(oldChild)
if (index > -1) this.childNodes.splice(index, 1, newChild)