I need to select a <p> element that has a nested <a> with a specific class.
The <a> is not always a child of the <p> and may instead be a grandchild. For example:
<p>some text<span><a href="#" class="myclass f5">link</a></span></p>
I need to select the <p> element if it has an <a> with the class f5 anywhere inside.