Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14288 closed bug (notabug)

.after() does not work as expected?

Reported by: jonas@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:

Description

In jquery 1.4 and 1.8 this

$("<div></div>").after("<p></p>")

returns

[<div></div>, <p></p>]

in 1.9.1 and 2.0.3 the same returns

[<div></div>]

Change History (4)

comment:1 Changed 6 years ago by anonymous

same problem in 1.10.2 aswell

comment:2 Changed 6 years ago by jonas@…

also applies to 'before'. If attached to dom everything works fine.

comment:4 Changed 6 years ago by jonas@…

Ok, thanks,

then this page

http://api.jquery.com/after/

section

Inserting Disconnected DOM nodes

needs to be changed as it is wrong. The sample does not work anymore.

Note: See TracTickets for help on using tickets.