git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6de5275
)
Fixed a bug with .append() and <td>/<tr>.
author
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 07:00:02 +0000
(07:00 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 07:00:02 +0000
(07:00 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
4059807
..
f927a35
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-1355,16
+1355,17
@@
jQuery.extend({
var wrap =
// option or optgroup
var wrap =
// 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>"] ||
!s.indexOf("<tr") &&
[2, "<table><tbody>", "</tbody></table>"] ||
// <thead> matched above
[1, "<table>", "</table>"] ||
!s.indexOf("<tr") &&
[2, "<table><tbody>", "</tbody></table>"] ||
// <thead> matched above
- !s.indexOf("<td") || !s.indexOf("<th") &&
+ (!s.indexOf("<td") || !s.indexOf("<th")) &&
[3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
[0,"",""];
[3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
[0,"",""];
@@
-1400,6
+1401,7
@@
jQuery.extend({
r.push( arg );
else
r = jQuery.merge( r, arg );
r.push( arg );
else
r = jQuery.merge( r, arg );
+
}
return r;
}
return r;