One who publicly desecrates Yom Tov is not like a non-Jew for all his laws. The reasons of Rashi and of the Rambam do not apply to Yom Tov in the same way. As the Rambam wrote in Hilchot Gerushin, a get written on Yom Tov is invalid only by rabbinic law, unlike a get on Shabbat or Yom Kippur.