Fixed a bug with .append() and <td>/<tr>.
This commit is contained in:
parent
6de5275687
commit
84ecf3937b
1 changed files with 5 additions and 3 deletions
8
src/jquery/jquery.js
vendored
8
src/jquery/jquery.js
vendored
|
@ -1355,16 +1355,17 @@ jQuery.extend({
|
||||||
|
|
||||||
var wrap =
|
var wrap =
|
||||||
// option or optgroup
|
// option or optgroup
|
||||||
!s.indexOf("<opt") && [1, "<select>", "</select>"] ||
|
!s.indexOf("<opt") &&
|
||||||
|
[1, "<select>", "</select>"] ||
|
||||||
|
|
||||||
!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot") &&
|
(!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot")) &&
|
||||||
[1, "<table>", "</table>"] ||
|
[1, "<table>", "</table>"] ||
|
||||||
|
|
||||||
!s.indexOf("<tr") &&
|
!s.indexOf("<tr") &&
|
||||||
[2, "<table><tbody>", "</tbody></table>"] ||
|
[2, "<table><tbody>", "</tbody></table>"] ||
|
||||||
|
|
||||||
// <thead> matched above
|
// <thead> matched above
|
||||||
!s.indexOf("<td") || !s.indexOf("<th") &&
|
(!s.indexOf("<td") || !s.indexOf("<th")) &&
|
||||||
[3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
|
[3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
|
||||||
|
|
||||||
[0,"",""];
|
[0,"",""];
|
||||||
|
@ -1400,6 +1401,7 @@ jQuery.extend({
|
||||||
r.push( arg );
|
r.push( arg );
|
||||||
else
|
else
|
||||||
r = jQuery.merge( r, arg );
|
r = jQuery.merge( r, arg );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in a new issue