Append colgroup and col elements (#1044)
[jquery.git] / src / jquery / jquery.js
index d04aa61..c22c12c 100644 (file)
@@ -1465,7 +1465,7 @@ jQuery.extend({
                                        !s.indexOf("<leg") &&
                                        [1, "<fieldset>", "</fieldset>"] ||
                                        
-                                       (!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot")) &&
+                                       (!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot") || !s.indexOf("<colg")) &&
                                        [1, "<table>", "</table>"] ||
                                        
                                        !s.indexOf("<tr") &&
@@ -1475,6 +1475,9 @@ jQuery.extend({
                                        (!s.indexOf("<td") || !s.indexOf("<th")) &&
                                        [3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
                                        
+                                       !s.indexOf("<col") &&
+                                       [2, "<table><colgroup>", "</colgroup></table>"] ||
+                                       
                                        [0,"",""];
 
                                // Go to html and back, then peel off extra wrappers