Skip to content

Commit 0a8d0f9

Browse files
Relequestualscottgonzalez
authored andcommitted
Parent: Fixed links.
1 parent df46282 commit 0a8d0f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/parent.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<desc>Get the parent of each element in the current set of matched elements, optionally filtered by a selector.</desc>
1111
<longdesc>
1212
<p>Given a jQuery object that represents a set of DOM elements, the <code>.parent()</code> method allows us to search through the parents of these elements in the DOM tree and construct a new jQuery object from the matching elements.</p>
13-
<p>The <code>.parents()</code> and <code><a href="http://api.jquery.com/parent/">.parent()</a></code> methods are similar, except that the latter only travels a single level up the DOM tree. Also, <code>$("html").parent()</code> method returns a set containing <code>document</code> whereas <code>$("html").parents()</code> returns an empty set.</p>
13+
<p>The <code><a href="/parents/">.parents()</a></code> and <code>.parent()</code> methods are similar, except that the latter only travels a single level up the DOM tree. Also, <code>$("html").parent()</code> method returns a set containing <code>document</code> whereas <code>$("html").parents()</code> returns an empty set.</p>
1414
<p>The 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>
1515
<p>Consider a page with a basic nested list on it:</p>
1616
<pre><code>
@@ -78,4 +78,4 @@ $("*", document.body).each(function () {
7878
</example>
7979
<category slug="traversing/tree-traversal"/>
8080
<category slug="version/1.0"/>
81-
</entry>
81+
</entry>

0 commit comments

Comments
 (0)