Bug Tracker

Opened 10 years ago

Closed 8 years ago

#13967 closed feature (migrated)

Enchancement: selector for Unwrap

Reported by: [email protected] 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.

Change History (4)

comment:1 Changed 10 years ago by dmethvin

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?

comment:2 Changed 9 years ago by dmethvin

Owner: set to dmethvin
Status: openassigned

comment:3 Changed 9 years ago by dmethvin

Milestone: 1.11/2.11.12/2.2

comment:4 Changed 8 years ago by m_gol

Resolution: migrated
Status: assignedclosed
Note: See TracTickets for help on using tickets.