I'd like to select an element which has no children of a specific type, for example:
all <li> elements who have no <table class="someclass"> children, I'd like to select only the parent element, not the children that don't match table.
On a similar note, I'd like to match elements whose parents don't match X, for example:
all <li> elements who are not descendents of <table class="someclass">.
I'm using python, and lxml's cssselect.
Thanks!
 
     
     
    