From: John Resig Date: Sat, 3 Jan 2009 00:19:02 +0000 (+0000) Subject: Hid an issue where Safari through an exception when a colgroup was created in jQuery... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=cff37cc83559586d3cc514d620880f2d9103fae9;hp=303ad32c749ba92d2ce31dfe46942c92093677cb;p=jquery.git Hid an issue where Safari through an exception when a colgroup was created in jQuery.clean. Not completely sure what the cause is, yet. --- diff --git a/src/core.js b/src/core.js index 92a6bd4..2688a46 100644 --- a/src/core.js +++ b/src/core.js @@ -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++ ) {