You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing a Document Fragment, the appendChild method calls Array.prototype.push.apply(nodelist, newChild.childNodes.toArray() );
But as NodeList.toArray() returns self, you will receive Exception TypeError: Function.prototype.apply: Arguments list has wrong type.
I got around this issue by putting back the original toArray() method:
toArray: function () {
var children = [];
for ( var i=0; i < this.length; i++) {
children.push (this[i]);
}
return children;
},
When parsing a Document Fragment, the appendChild method calls
Array.prototype.push.apply(nodelist, newChild.childNodes.toArray() );
But as
NodeList.toArray()
returns self, you will receive Exception TypeError: Function.prototype.apply: Arguments list has wrong type.I got around this issue by putting back the original
toArray()
method:toArray: function () {
var children = [];
for ( var i=0; i < this.length; i++) {
children.push (this[i]);
}
return children;
},
See commit orslumen@bb3c8db
The text was updated successfully, but these errors were encountered: