Skip to content
Browse files

Parent-selector: clarify description

  • Loading branch information...
1 parent f4858cd commit 7688f95e130d1986de64110918e3ab05178526a2 @kswedberg kswedberg committed Aug 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 entries/parent-selector.xml
View
4 entries/parent-selector.xml
@@ -5,10 +5,10 @@
<signature>
<added>1.0</added>
</signature>
- <desc>Select all elements that are the parent of another element, including text nodes.</desc>
+ <desc>Select all elements that that have at least one child node (either an element or text).</desc>
<longdesc>
<p>This is the inverse of <code>:empty</code>. </p>
- <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>
+ <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>
<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>
</longdesc>
<note id="jquery-selector-extension" type="additional" data-selector=":parent"/>

0 comments on commit 7688f95

Please sign in to comment.
Something went wrong with that request. Please try again.