Disallow invalid input types.
Correct:
<input type="search">
Incorrect:
<input type="foo">
Whitelist and blacklist?