Skip to content

Commit e12c10e

Browse files
committed
unwrap: add selector argument
Ref jquery/jquery@7b09235
1 parent 0a6caf3 commit e12c10e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entries/unwrap.xml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<signature>
55
<added>1.4</added>
66
</signature>
7+
<signature>
8+
<added>3.0</added>
9+
<argument name="selector" type="String" optional="true">
10+
<desc>A selector to check the parent element against. If the parent element does not match the selector, the element won't be unwrapped.</desc>
11+
</argument>
12+
</signature>
713
<desc>Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.</desc>
814
<longdesc>
915
<p>The <code>.unwrap()</code> method removes the element's parent. This is effectively the inverse of the <code><a href="/wrap/">.wrap()</a></code> method. The matched elements (and their siblings, if any) replace their parents within the DOM structure.</p>

0 commit comments

Comments
 (0)