Bug Tracker

Modify

Ticket #5404 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

append() call with multiple args works in Firefox, drops first arg in WebKit

Reported by: jan@… Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

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

Change History

comment:1 Changed 4 years ago by pbcomm

This works with nightly build of jQuery. The fix will roll out with 1.4.

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 1.4.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.