aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-16 03:35:29 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-16 03:35:29 +0000
commit760a244dbdca7b5a93d147c62ac37ff6eeb9573b (patch)
treed89053c9c2469c46d35aecdb2610b0024401d01a /src/jquery/jquery.js
parentd38ee78db9b8a8a89b985928c1d23543cb2ff1cd (diff)
downloadjquery-760a244dbdca7b5a93d147c62ac37ff6eeb9573b.tar.gz
jquery-760a244dbdca7b5a93d147c62ac37ff6eeb9573b.zip
Added a fix for bug #1489, appending <caption> was broken.
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r--src/jquery/jquery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 07588baac..94f099be8 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1566,7 +1566,7 @@ jQuery.extend({
!s.indexOf("<leg") &&
[1, "<fieldset>", "</fieldset>"] ||
- (!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot") || !s.indexOf("<colg")) &&
+ s.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
[1, "<table>", "</table>"] ||
!s.indexOf("<tr") &&