Palestinians have not held a legislative election since 2006, when Hamas won a majority of seats.