Skip to content

Commit 7688f95

Browse files
committed
Parent-selector: clarify description
1 parent f4858cd commit 7688f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/parent-selector.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<signature>
66
<added>1.0</added>
77
</signature>
8-
<desc>Select all elements that are the parent of another element, including text nodes.</desc>
8+
<desc>Select all elements that that have at least one child node (either an element or text).</desc>
99
<longdesc>
1010
<p>This is the inverse of <code>:empty</code>. </p>
11-
<p>One important thing to note regarding the use of <code>:parent</code> (and <code>:empty</code>) is that child elements include text nodes.</p>
11+
<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>
1313
</longdesc>
1414
<note id="jquery-selector-extension" type="additional" data-selector=":parent"/>

0 commit comments

Comments
 (0)