Skip to content

Commit 5065c15

Browse files
committed
unwrap: add selector argument
Fixes gh-689 Closes gh-711
1 parent 0669a93 commit 5065c15

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 an element's parent 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)