Side navigation
#5404 closed bug (fixed)
Opened October 22, 2009 05:13AM UTC
Closed June 13, 2010 06:06PM UTC
append() call with multiple args works in Firefox, drops first arg in WebKit
Reported by: | jan@miksovsky.com | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
A call to append() whose arguments contain a mixture of text nodes and jQuery objects will have expected behavior in Firefox 3.5.3, but not in WebKit (Chrome 3.0.195.27, Safari 4.0.3).
/* Sample, use on an HTML 5 page. */
var d = $("<div>you</div>");
$("body").append("Hey ", d, " guys");
Result in Firefox (as expected):
Hey
you
guys
Result in WebKit (drops the first argument):
you
guys
This works with nightly build of jQuery. The fix will roll out with 1.4.