Fix furthest ancestor traversal (for finding all li with 'active' class)