forked from mdn/translated-content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
files/ja/web/html/global_attributes/writingsuggestions/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: writingsuggestions | ||
slug: Web/HTML/Global_attributes/writingsuggestions | ||
l10n: | ||
sourceCommit: 8d5d18805ad96e1c56d72de5c26de60e86dfa817 | ||
--- | ||
|
||
{{HTMLSidebar("Global_attributes")}} | ||
|
||
**`writingsuggestions`** は[グローバル属性](/ja/docs/Web/HTML/Global_attributes)で、{{glossary("enumerated", "列挙型")}}属性であり、ブラウザーが指定した入力補完を要素のスコープで有効にするかどうかを示します。 | ||
|
||
一部のブラウザーでは、ユーザーが編集可能なフィールドに入力する際に、入力のヒントを表示します。 通常、入力のヒントは、ユーザーの文を完成させるために、テキストカーソルの後に配置されるグレー表示のテキストとして現れます。この機能はユーザーに役立つ場合もありますが、開発者によっては、サイト固有の入力のヒントを表示する場合など、入力のヒントをオフにしたい場合もあるでしょう。 | ||
|
||
`writingsuggestions` 属性は、 {{htmlelement('input')}} や {{htmlelement('textarea')}} などの編集可能なフィールド、または他の HTML 要素に設定でき、ページの一部または全体に対するブラウザーの提案の動作を制御できます。 | ||
|
||
## 構文 | ||
|
||
対応しているブラウザーでは、入力補完機能は既定では有効になっています。無効にするには、 `writingsuggestions` 属性の値を `false` に設定します。属性の値を `true` に設定するか、値を省略すると、入力補完機能が有効になります。 | ||
|
||
入力補完を無効にするには、次のようにします。 | ||
|
||
```html | ||
<input type="text" writingsuggestions="false" /> | ||
``` | ||
|
||
入力補完を有効にするには、次のようにします。 | ||
|
||
```html | ||
<input type="text" /> | ||
<input type="text" writingsuggestions /> | ||
<input type="text" writingsuggestions="true" /> | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} | ||
|
||
## 関連情報 | ||
|
||
- [`autocomplete`](/ja/docs/Web/HTML/Attributes/autocomplete) 属性 | ||
- [`spellcheck`](/ja/docs/Web/HTML/Global_attributes/spellcheck) 属性 | ||
- [`contenteditable`](/ja/docs/Web/HTML/Global_attributes/contenteditable) 属性 | ||
- {{HTMLElement("textarea")}} | ||
- {{HTMLElement("input")}} | ||
- {{HTMLElement("datalist")}} および [`list`](/ja/docs/Web/HTML/Element/input#list) 属性 |