Bug Tracker

Opened 6 years ago

Closed 5 years ago

#13967 closed feature (migrated)

Enchancement: selector for Unwrap

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

Description

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 6 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 6 years ago by dmethvin

Owner: set to dmethvin
Status: openassigned

comment:3 Changed 6 years ago by dmethvin

Milestone: 1.11/2.11.12/2.2

comment:4 Changed 5 years ago by m_gol

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