Hid an issue where Safari through an exception when a colgroup was created in jQuery.clean. Not completely sure what the cause is, yet.

This commit is contained in:
John Resig 2009-01-03 00:19:02 +00:00
parent 303ad32c74
commit cff37cc835

View file

@ -916,7 +916,10 @@ jQuery.extend({
});
// Clean up
div.innerHTML = "";
// Safari 3.1 throws an exception when a colgroup is created
try {
div.innerHTML = "";
} catch(e){}
if ( fragment ) {
for ( var i = 0; ret[i]; i++ ) {