Bug Tracker

Modify

Ticket #10310 (closed enhancement: wontfix)

Opened 20 months ago

Last modified 20 months ago

.append does not accept arrays as an argument

Reported by: mblase75@… Owned by:
Priority: low Milestone: None
Component: manipulation Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

 http://jsfiddle.net/GmHwh/

The first .append will work, the second will not:

$('#content1').append("test one","test two"); var arr = ["test one","test two"]; $('#content2').append(arr);

The documentation clearly fails to say that .append accepts array arguments. However, I feel it should accept them and treat them the same as multiple arguments.

Change History

comment:1 Changed 20 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

Thank you for the suggestion, but I don't think we will be implementing this. It would not be consistent with any other manipulation method.

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.