28 not 25, and non-voting Democrats elected Boehner.
I heard one of the talk radio guys say that the way the House Rules are written, the Speaker has to receive the winning # of votes from the majority party. The minority party votes don’t count. That was to offset the fear that splitting the R votes would hand the Speakership to Pelosi.
Seems like to me that the Republicans that voted for him elected him.