aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-01-16 22:07:53 +0400
committerDave Methvin <dave.methvin@gmail.com>2013-01-20 18:30:56 -0500
commit19def21df41d6be6419e4d2480a656d9e1a0e6b7 (patch)
tree6842bc6fe513630008b42cd17cf59be1217bcc3e /src/manipulation.js
parentdbf4926e31390ceda57730c68d40f34536803114 (diff)
downloadjquery-19def21df41d6be6419e4d2480a656d9e1a0e6b7.tar.gz
jquery-19def21df41d6be6419e4d2480a656d9e1a0e6b7.zip
Fix #13232, fix jQuery.buildFragment for tables, close gh-1138.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 3193ad7af..9a2b3db66 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -15,15 +15,17 @@ var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>
// Support: IE 9
option: [ 1, "<select multiple='multiple'>", "</select>" ],
- tr: [ 1, "<table>", "</table>" ],
- td: [ 3, "<table><tr>", "</tr></table>" ],
+ thead: [ 1, "<table>", "</table>" ],
+ tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+ td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+
_default: [ 0, "", "" ]
};
// Support: IE 9
wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead = wrapMap.col = wrapMap.tr;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.col = wrapMap.thead;
wrapMap.th = wrapMap.td;
jQuery.fn.extend({