A brief gunbattle between rival Fatah factions erupted outside the Gaza headquarters of Palestinian President Mahmoud Abbas Wednesday , as the ruling party prepared to register its list of candidates for January 's parlimentary elections .