Skip to content

Commit ee24a60

Browse files
committed
Merge pull request #27 from jmm/jmm/closest-links
Linked .parents() mentions. Marked up content as <code>.
2 parents 8fc8322 + d64fa2b commit ee24a60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entries/closest.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
</signature>
3030

3131
<desc>Get the first element that matches the selector, beginning at the current element and progressing up through the DOM tree.</desc>
32-
<longdesc><p>Given a jQuery object that represents a set of DOM elements, the <code>.closest()</code> method searches through these elements and their ancestors in the DOM tree and constructs a new jQuery object from the matching elements. The <code>.parents()</code> and <code>.closest()</code> methods are similar in that they both traverse up the DOM tree. The differences between the two, though subtle, are significant:</p>
32+
<longdesc><p>Given a jQuery object that represents a set of DOM elements, the <code>.closest()</code> method searches through these elements and their ancestors in the DOM tree and constructs a new jQuery object from the matching elements. The <a href="/parents/"><code>.parents()</code></a> and <code>.closest()</code> methods are similar in that they both traverse up the DOM tree. The differences between the two, though subtle, are significant:</p>
3333

3434
<table>
3535
<thead>
3636
<tr>
37-
<th>.closest()</th>
38-
<th>.parents()</th>
37+
<th><code>.closest()</code></th>
38+
<th><a href="/parents/"><code>.parents()</code></a></th>
3939
</tr>
4040
</thead>
4141
<tbody>

0 commit comments

Comments
 (0)