Taiwan's ruling party failed to take control of the capital in a local election seen as a midterm test of President William Lai's leadership. The ruling Democratic Progressive Party (DPP) made gains overall, winning at least nine out of 22 cities and counties, its best result in a decade. It is an increase from the five it previously held.