<pclass="desc"><strong>Description: </strong>Select all elements that are the parent of another element, including text nodes.</p>
<divclass="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>The W3C recommends that the <code><p></code> element have at least one child node, even if that child is merely text (see <ahref="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><input></code>, <code><img></code>, <code><br></code>, and <code><hr></code>, for example.</p>