aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-01-03 00:19:02 +0000
committerJohn Resig <jeresig@gmail.com>2009-01-03 00:19:02 +0000
commitcff37cc83559586d3cc514d620880f2d9103fae9 (patch)
treef79f5c966d238cdf5a79405d3e9c0c99a1497a40 /src
parent303ad32c749ba92d2ce31dfe46942c92093677cb (diff)
downloadjquery-cff37cc83559586d3cc514d620880f2d9103fae9.tar.gz
jquery-cff37cc83559586d3cc514d620880f2d9103fae9.zip
Hid an issue where Safari through an exception when a colgroup was created in jQuery.clean. Not completely sure what the cause is, yet.
Diffstat (limited to 'src')
-rw-r--r--src/core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 92a6bd4a8..2688a4698 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++ ) {