Skip to content

Commit c569236

Browse files
committed
Add a pointer to .parent() in :parent, close gh-43.
1 parent c1c9fc9 commit c569236

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

entries/parent-selector.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<p>This is the inverse of <code>:empty</code>. </p>
1111
<p>One important thing to note regarding the use of <code>:parent</code> (and <code>:empty</code>) is that child nodes include text nodes.</p>
1212
<p>The W3C recommends that the <code>&lt;p&gt;</code> element have at least one child node, even if that child is merely text (see <a href="http://www.w3.org/TR/html401/struct/text.html#edef-P">http://www.w3.org/TR/html401/struct/text.html#edef-P</a>). Some other elements, on the other hand, are empty (i.e. have no children) by definition:<code> &lt;input&gt;</code>, <code>&lt;img&gt;</code>, <code>&lt;br&gt;</code>, and <code>&lt;hr&gt;</code>, for example.</p>
13+
<p>To obtain the parents or ancestors of an existing jQuery set, see the <code><a href="http://api.jquery.com/parent/">.parent()</a></code> and <code><a href="http://api.jquery.com/parents/">.parents()</a></code> methods.</p>
1314
</longdesc>
1415
<note id="jquery-selector-extension" type="additional" data-selector=":parent"/>
1516
<example>

0 commit comments

Comments
 (0)