writingsuggestions=bool - 入力補完機能制御
目次
属性
<tagName writingsuggestions=bool>
- 入力補完機能制御
サポート
https://caniuse.com/mdn-html_global_attributes_writingsuggestions説明
<input>
や <textarea>
や contenteditable
を指定した要素において、ブラウザが入力補完機能を提供するケースがありますが、これを無効化することができます。
[入力補完機能の例(イメージ)]
Comment:
I am using Google Chrome
Chrome 124 でサポートされました。 Edge, Safari, Opera も対応済です。2025年3月現在 Firefox 136 ではサポートされていません。ただし、Chrome 134 で無効設定を試してみても、name="name"
入力欄に過去に入力したことのある文字列の一覧が表示され、これを無効化することができませんでした。原因不明...。
使用例
HTML
<h3>入力補完機能:有効</h3> <input type="text" name="name"> <input type="text" name="name" writingsuggestions> <input type="text" name="name" writingsuggestions="true"> <h3>入力補完機能:無効</h3> <input type="text" name="name" writingsuggestions="false">
表示
入力補完機能:有効
入力補完機能:無効
リンク
- https://html.spec.whatwg.org/multipage/interaction.html#writing-suggestions
- https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/writingsuggestions
- https://caniuse.com/mdn-html_global_attributes_writingsuggestions
- https://chromestatus.com/feature/5153375153029120
Copyright (C) 2025 杜甫々
初版:2025年3月23日 最終更新:2025年3月23日
https://www.tohoho-web.com/html/attr/writingsuggestions.htm