There was an issue with my table/tbody detection.
This commit is contained in:
parent
70cab836b0
commit
057381c70d
11
jquery/jquery.js
vendored
11
jquery/jquery.js
vendored
|
@ -423,10 +423,13 @@ $.fn.domManip = function(fn){
|
||||||
var obj = this;
|
var obj = this;
|
||||||
|
|
||||||
if ( this.nodeName == 'TABLE' ) {
|
if ( this.nodeName == 'TABLE' ) {
|
||||||
if ( !this.firstChild ) {
|
var tbody = this.getElementsByTagName("tbody");
|
||||||
this.appendChild( document.createElement("tbody") );
|
|
||||||
}
|
if ( !tbody.length ) {
|
||||||
obj = this.firstChild;
|
obj = document.createElement("tbody");
|
||||||
|
this.appendChild( obj );
|
||||||
|
} else
|
||||||
|
obj = tbody[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$.apply( obj, fn );
|
$.apply( obj, fn );
|
||||||
|
|
Loading…
Reference in a new issue