Bug Tracker

Modify

Ticket #3828 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

1.3 Rc1: wrap fails on disconntected element

Reported by: joern Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

Trying to wrap a disconnected element like this:

$("<label/>").wrap("<li/>");

fails with "this.parentNode is null" on line 268.

To workaround, append to the element to the document first.

Change History

comment:1 Changed 4 years ago by john

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

Fixed in SVN rev [6095].

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.