Skip to main content

Bug Tracker

Side navigation

#14288 closed bug (notabug)

Opened August 23, 2013 06:07AM UTC

Closed August 23, 2013 12:08PM UTC

Last modified August 23, 2013 01:29PM UTC

.after() does not work as expected?

Reported by: jonas@programenta.se 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>]

Attachments (0)
Change History (4)

Changed August 23, 2013 06:16AM UTC by anonymous comment:1

same problem in 1.10.2 aswell

Changed August 23, 2013 06:59AM UTC by jonas@programenta.se comment:2

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

Changed August 23, 2013 12:08PM UTC by dmethvin comment:3

Changed August 23, 2013 01:29PM UTC by jonas@programenta.se comment:4

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.