No, Mossadegh was never elected. Being “elected” by the members of government is an appointment. It’s not even “democratic”.
So when has it been okay to be a socialist so long as one is not an Islamist?
so he was not "elected by the members of governement" -- rather he was voted to parliament by the people and then elected to government by the representatives
Next -- so you acknowledge you were wrong to call him an Islamist?
He was a socialist, yes, and he would have been better than the Ayatollahs or communists. You take the lesser of two evils -- when the Brits got him out, their actions of taking out a democratically elected leader led to the destabilisation that brought in the Ayatollahs