0

This question already has an answer here:

My code

I want to select the class result-xl-content only if it doesn't contain the class xl-logo-bloc

the Html looks something like that(with sometimes the class "xl-bloc-logo" totally absent) :

<div class="result-xl-content">
<div class="xl-logo-bloc"> 
<img id="8018999" class="xl-logo"> 
</div>
</div>

marked as duplicate by Alexey R., Bharat Mane, trashpanda, Kate Paulk Mar 14 at 14:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.