Bug Tracker

Modify

Ticket #7549 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

jQuery can not insert a stack of elements with after, insertAfter, before and insertBefore

Reported by: bjarte.bore@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

When trying to insert a stack of jQuery elements before or after another element it will fail. This did work in version 1.4.2

I created 2 examples for this

 http://jsbin.com/enoni4/1 <-- latest version  http://jsbin.com/enoni4/2 <-- 1.4.2 version

Change History

comment:1 Changed 3 years ago by jitter

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

There is no signature of jQuery( ... ) which accepts an array of jQuery objects as you do in your test case. Maybe you meant to use the jQuery( elementArray ) signature which accepts an array of DOM elements ( jQuery() docs). If this worked in 1.4.2 it was a bug that got fixed.

See this  test case for the correct usage

Last edited 3 years ago by jitter (previous) (diff)

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.