Skip to content

Commit ea10365

Browse files
committed
Merge pull request #263 from alimony/patch-1
"throughthe" -> "through the"
2 parents 90e9d11 + 36bde84 commit ea10365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/children.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</signature>
1010
<desc>Get the children of each element in the set of matched elements, optionally filtered by a selector.</desc>
1111
<longdesc>
12-
<p>Given a jQuery object that represents a set of DOM elements, the <code>.children()</code> method allows us to search throughthe children of these elements in the DOM tree and construct a new jQuery object from the matching elements. The <code>.children()</code> method differs from <code><a href="http://api.jquery.com/find/">.find()</a></code> in that <code>.children()</code> only travels a single level down the DOM tree while <code>.find()</code> can traverse down multiple levels to select descendant elements (grandchildren, etc.) as well. Note also that like most jQuery methods, <code>.children()</code> does not return text nodes; to get <em>all</em> children including text and comment nodes, use <code><a href="http://api.jquery.com/contents">.contents()</a></code>.</p>
12+
<p>Given a jQuery object that represents a set of DOM elements, the <code>.children()</code> method allows us to search through the children of these elements in the DOM tree and construct a new jQuery object from the matching elements. The <code>.children()</code> method differs from <code><a href="http://api.jquery.com/find/">.find()</a></code> in that <code>.children()</code> only travels a single level down the DOM tree while <code>.find()</code> can traverse down multiple levels to select descendant elements (grandchildren, etc.) as well. Note also that like most jQuery methods, <code>.children()</code> does not return text nodes; to get <em>all</em> children including text and comment nodes, use <code><a href="http://api.jquery.com/contents">.contents()</a></code>.</p>
1313
<p>The <code>.children()</code> method optionally accepts a selector expression of the same type that we can pass to the <code>$()</code> function. If the selector is supplied, the elements will be filtered by testing whether they match it.</p>
1414
<p>Consider a page with a basic nested list on it:</p>
1515
<pre><code>
@@ -124,4 +124,4 @@
124124
</example>
125125
<category slug="traversing/tree-traversal"/>
126126
<category slug="version/1.0"/>
127-
</entry>
127+
</entry>

0 commit comments

Comments
 (0)