LoginSignup
13
9

More than 5 years have passed since last update.

iOS8+Safariの時だけtype="search"で「改行」が「検索」にならない

Posted at

経緯

ざっくりマークアップしているときに、iOS8端末のSafariだけ

<form>
  <input type="search">
</form>

にフォーカスしたときに、キーボードの「改行」ボタンが「検索」に変わってくれなかった。
iOS7端末や、ChromeiOSなら普通に変わってたのに。

解決

iOS8+Safariはaction属性を記載しておかないと、type="search"が正常に(?)判別されない模様。
判定基準を厳密にしたのかな?

<form action="/">
  <input type="search">
</form>
13
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
9