Opened 9 years ago
Closed 8 years ago
#13967 closed feature (migrated)
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: |
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 9 years ago by
Component: | unfiled → manipulation |
---|---|
Milestone: | None → 1.11/2.1 |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 9 years ago by
Owner: | set to dmethvin |
---|---|
Status: | open → assigned |
comment:3 Changed 9 years ago by
Milestone: | 1.11/2.1 → 1.12/2.2 |
---|
comment:4 Changed 8 years ago by
Resolution: | → migrated |
---|---|
Status: | assigned → closed |
Migrated to https://github.com/jquery/jquery/issues/1744
Note: See
TracTickets for help on using
tickets.
I'm not a fan of the
wrap
pish 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?