Add input type="search"

I also added a test. Don't know if that is necessary in this case.
This commit should fix #466.