Skip to main content

Bug Tracker

Side navigation

#13869 closed bug (notabug)

Opened May 08, 2013 11:44AM UTC

Closed May 08, 2013 12:28PM UTC

Can't call before() method with static markup more than once

Reported by: jojo Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

Please see the following Fiddle:

http://jsfiddle.net/q3RxT/

If you comment out the second before() call, everything works fine. Also replacing the before() method with the after() method works.

May be related to this, alreday closed, bug (wasn't able to reopen it):

http://bugs.jquery.com/ticket/5142

Attachments (0)
Change History (1)

Changed May 08, 2013 12:28PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

We only fix bugs in the latest version. For that specific case, it is no longer valid to use .before() on a disconnected set of nodes. http://jquery.com/upgrade-guide/1.9/#after-before-and-replacewith-with-disconnected-nodes