Independents were allowed to vote; however, their ballots should have only had the initiative and any local races, not the presidential preference.
According to exit polling, 20% of the people who voted in the Republican primary were not Republicans. Many of them voted for McCain.