You cold solve the problem using your own Javascript:
First you can select all the βaβ elements inside the βliβ element:
var childLinks = document.querySelectorall("ul li a");
Then you can choose a parent for each of them:
childLinks[0].parentNode
Native methods should be faster.
source share