Soo basically I want to select element which has specific child elements. For now I have selector which selects the child element of a chain:
const el = document.querySelector('#leftMenu ul > li > a:not(.active) + ul > li.active')
Now to get the element I'm interested in i have to do this:
const x = el.parentNode.parentNode;
Is there any way to get this element staight from the selector itself?