Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
unwrap: add selector argument
Fixes gh-689
Closes gh-711
  • Loading branch information
arthurvr committed Apr 9, 2015
commit 5065c15679624ad4efb81b5b4f121ecdde64c07d
6 changes: 6 additions & 0 deletions entries/unwrap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<signature>
<added>1.4</added>
</signature>
<signature>
<added>3.0</added>
<argument name="selector" type="String" optional="true">
<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>
</argument>
</signature>
<desc>Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.</desc>
<longdesc>
<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>
Expand Down