-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
effort: smallTask is a small effort.Task is a small effort.good first issueA good issue for newcomers to get started with.A good issue for newcomers to get started with.l10n-jaIssues related to Japanese content.Issues related to Japanese content.
Description
MDN URL
https://developer.mozilla.org/ja/docs/Web/API/HTMLInputElement/search_event
この問題に関する節や見出しはどこですか。
HTMLInputElement: search イベントの概要説明
不完全、不親切、不完全であった情報は何ですか。
incremental 属性が存在すれば、最も新しいキー入力から UA 定義のタイムアウト時間が経過してから検索が開始されます(新しくキー入力をするとタイムアウトがリセットされるので、イベントが繰り返して発生します)。
上記の「新しくキー入力を……イベントが繰り返して発生します」���分は「新しくキー入力をする度にイベントが繰り返し発生する」とも読み取れますが、正しくは「新しくキー入力をする度に直前のイベントは破棄され、最後の入力から一定時間経過後に1回だけイベントが発生する」だと思います。
どう表示されるべきだと思いますか。
新しくキー入力をするとタイムアウトがリセットされるので、イベントの発生が[debounce](https://developer.mozilla.org/en-US/docs/Glossary/Debounce)されます
または
新しくキー入力をする度にタイムアウトがリセットされ、それからタイムアウト時間が経過するまではイベントが発生しません
補足情報となるリンク、参考資料、引用文献はありますか。
- 英語版記事:https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/search_event
if the incremental attribute is present, after a UA-defined timeout elapses since the most recent keystroke (with new keystrokes resetting the timeout so the firing of the event is debounced).
- 用語「Debounce」の記事:https://developer.mozilla.org/en-US/docs/Glossary/Debounce
Debouncing, in the context of programming, means to discard operations that occur too close together during a specific interval, and consolidate them into a single invocation.
他に共有したいことはありますか。
No response
MDN metadata
Page report details
- Folder:
ja/web/api/htmlinputelement/search_event - MDN URL: https://developer.mozilla.org/ja/docs/Web/API/HTMLInputElement/search_event
- GitHub URL: https://github.com/mdn/translated-content/blob/main/files/ja/web/api/htmlinputelement/search_event/index.md
- Last commit: 25250cc
- Document last modified: 2025-04-12T02:36:56.000Z
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
effort: smallTask is a small effort.Task is a small effort.good first issueA good issue for newcomers to get started with.A good issue for newcomers to get started with.l10n-jaIssues related to Japanese content.Issues related to Japanese content.