Skip to content

Commit 576a64b

Browse files
mewellingAurelioDeRosa
authored andcommitted
unwrap: Update description to include return value information
The `.unwrap()` method returns whatever content was unwrapped. Adding this to the description so that the behavior is documented. Closes jquerygh-1071
1 parent b82f48d commit 576a64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/unwrap.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</signature>
1313
<desc>Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.</desc>
1414
<longdesc>
15-
<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>
15+
<p>The <code>.unwrap()</code> method removes the element's parent and returns the unwrapped content. 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>
1616
</longdesc>
1717
<example>
1818
<desc>Wrap/unwrap a div around each of the paragraphs.</desc>

0 commit comments

Comments
 (0)