Skip to main content

Bug Tracker

Side navigation

#12340 closed bug (invalid)

Opened August 18, 2012 03:48AM UTC

Closed September 02, 2012 08:40AM UTC

unwrap() fails when wrapper is a figure element

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

var $foo = $('<img/>');

$foo.wrap('<div></div>');

$foo.unwrap(); // works fine

$foo.wrap('<figure></figure>');

$foo.unwrap(); // TypeError: Cannot read property 'constructor' of undefined

Using 1.7.2 in Chrome under Ubuntu

Attachments (0)
Change History (2)

Changed August 18, 2012 11:20PM UTC by timmywil comment:1

owner: → brianfreud
status: newpending

Thanks for taking time to contribute to the jquery project! Please help us assess your ticket by providing a test case from  http://jsfiddle.net or  http://jsbin.com using the git version of jQuery.

Changed September 02, 2012 08:40AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!