Commit 057381c7 authored by John Resig's avatar John Resig

There was an issue with my table/tbody detection.

parent 70cab836
......@@ -423,10 +423,13 @@ $.fn.domManip = function(fn){
var obj = this;
if ( this.nodeName == 'TABLE' ) {
if ( !this.firstChild ) {
this.appendChild( document.createElement("tbody") );
}
obj = this.firstChild;
var tbody = this.getElementsByTagName("tbody");
if ( !tbody.length ) {
obj = document.createElement("tbody");
this.appendChild( obj );
} else
obj = tbody[0];
}
$.apply( obj, fn );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment