Modify ↓
Ticket #3828 (closed bug: fixed)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in SVN rev [6095].