]> source.dussan.org Git - jquery.git/commitdiff
Hid an issue where Safari through an exception when a colgroup was created in jQuery...
authorJohn Resig <jeresig@gmail.com>
Sat, 3 Jan 2009 00:19:02 +0000 (00:19 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 3 Jan 2009 00:19:02 +0000 (00:19 +0000)
src/core.js

index 92a6bd4a8c93554d7812e9d9142ea81ef43dd2b6..2688a4698c2a548a9ace6ff09bb6d02ec320962a 100644 (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++ ) {