Opened 13 years ago
Closed 13 years ago
#5404 closed bug (fixed)
append() call with multiple args works in Firefox, drops first arg in WebKit
Reported by: | 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
Note: See
TracTickets for help on using
tickets.
This works with nightly build of jQuery. The fix will roll out with 1.4.