Skip to main content

Bug Tracker

Side navigation

#13967 closed feature (migrated)

Opened May 30, 2013 01:41PM UTC

Closed October 21, 2014 12:12AM UTC

Enchancement: selector for Unwrap

Reported by: Owned by: dmethvin
Priority: low Milestone: 1.12/2.2
Component: manipulation Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:

Unwrap simple removes the parent of selected elements, and accepts no arguments.

In some cases it may be desirable to unwrap only if a condition on the parent is met. Enabling to pass a selector to Unwrap would allow this: if the parent matches the selector, then proceed, otherwise do nothing.

Attachments (0)
Change History (4)

Changed May 30, 2013 03:49PM UTC by dmethvin comment:1

component: unfiledmanipulation
milestone: None1.11/2.1
priority: undecidedlow
status: newopen

I'm not a fan of the wrappish methods at all, but one reason is exactly this, .unwrap() blindly unwraps elements when the most common case would be that you want to remove a specific wrapper. So this seems like a decent idea if it can be done cheaply. Thoughts?

Changed December 16, 2013 04:52PM UTC by dmethvin comment:2

owner: → dmethvin
status: openassigned

Changed December 23, 2013 05:19PM UTC by dmethvin comment:3

milestone: 1.11/2.11.12/2.2

Changed October 21, 2014 12:12AM UTC by m_gol comment:4

resolution: → migrated
status: assignedclosed