He tested on iPhone and concluded it was OK.
And he wasn’t completely wrong. Indeed when tapping the field, a nice numeric keyboard is displayed.
Of course, something is wrong in the example above. Even if the visual aspect is correct, the semantic is not. A better way is to use:
<input name="people" type="number" />
Or better using the recommended hack for iPhone:
<input name="people" type="number" pattern="[0-9]*" />
This implementation is correct: visually we have a numeric keyboard and we maintain the semantic aspect.
What if in the future phone numbers are replaced by ID? Or if they must be picked up from the contact book? The interface would change and the original snippet in this example wouldn’t work anymore.
A rule of thumb is you always win by betting on semantic. Semantic informs the browser about your intention. Browsers change but intentions remain.