From 0650cf58bb7da2a489ec3ac1f0436995c3f15600 Mon Sep 17 00:00:00 2001 From: tym-network Date: Mon, 17 Nov 2014 17:32:34 +0100 Subject: [PATCH] Add a missing space. --- entries/contents.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/contents.xml b/entries/contents.xml index 833aea25..d10defc0 100644 --- a/entries/contents.xml +++ b/entries/contents.xml @@ -6,7 +6,7 @@ Get the children of each element in the set of matched elements, including text and comment nodes. -

Given a jQuery object that represents a set of DOM elements, the .contents() method allows us to search throughthe immediate children of these elements in the DOM tree and construct a new jQuery object from the matching elements. The .contents() and .children() methods are similar, except that the former includes text nodes as well as HTML elements in the resulting jQuery object.

+

Given a jQuery object that represents a set of DOM elements, the .contents() method allows us to search through the immediate children of these elements in the DOM tree and construct a new jQuery object from the matching elements. The .contents() and .children() methods are similar, except that the former includes text nodes as well as HTML elements in the resulting jQuery object.

The .contents() method can also be used to get the content document of an iframe, if the iframe is on the same domain as the main page.

Consider a simple <div> with a number of text nodes, each of which is separated by two line break elements (<br>):