Enhancement: selector for Unwrap #1744
Comments
|
Comment author: dmethvin 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? |
Closed
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Originally reported by nlte@… at: http://bugs.jquery.com/ticket/13967
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.
Issue reported for jQuery 1.10.0
The text was updated successfully, but these errors were encountered: