From 92cef6fda839c4aba4aaf442f1a231ae720bed69 Mon Sep 17 00:00:00 2001 From: Michael Welling Date: Mon, 11 Dec 2017 14:58:38 -0500 Subject: [PATCH] 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. --- entries/unwrap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/unwrap.xml b/entries/unwrap.xml index d3a7b405..ff6d6100 100644 --- a/entries/unwrap.xml +++ b/entries/unwrap.xml @@ -12,7 +12,7 @@ Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. -

The .unwrap() method removes the element's parent. This is effectively the inverse of the .wrap() method. The matched elements (and their siblings, if any) replace their parents within the DOM structure.

+

The .unwrap() method removes the element's parent and returns the unwrapped content. This is effectively the inverse of the .wrap() method. The matched elements (and their siblings, if any) replace their parents within the DOM structure.

Wrap/unwrap a div around each of the paragraphs.