Skip to content

Commit

Permalink
Markdownlint auto-cleanup for ja (#22923)
Browse files Browse the repository at this point in the history
* ja: auto-fix Markdownlint issues

* Update files/ja/web/api/htmlmediaelement/play/index.md

Co-authored-by: Hoarfroster <hoarfroster@outlook.com>

* Update files/ja/web/api/htmlmediaelement/ended_event/index.md

Co-authored-by: Hoarfroster <hoarfroster@outlook.com>

* Update files/ja/web/api/idbcursor/direction/index.md

Co-authored-by: Hoarfroster <hoarfroster@outlook.com>

* Update files/ja/web/api/idbcursor/index.md

Co-authored-by: Hoarfroster <hoarfroster@outlook.com>

---------

Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Co-authored-by: Hoarfroster <hoarfroster@outlook.com>
  • Loading branch information
3 people committed Aug 7, 2024
1 parent b6fead9 commit 669ae83
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions files/ja/web/api/htmlmediaelement/ended_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ l10n:

このイベントはキャンセル不可で、バブリングしません。

> [!NOTE]
> `ended` イベントは [`loop`](/ja/docs/Web/API/HTMLMediaElement/loop) プロパティが `true`[`playbackRate`](/ja/docs/Web/API/HTMLMediaElement/playbackRate) が負の数ではない場合には発生しません。
> **メモ:** `ended` イベントは [`loop`](/ja/docs/Web/API/HTMLMediaElement/loop) プロパティが `true`[`playbackRate`](/ja/docs/Web/API/HTMLMediaElement/playbackRate) が負の数ではない場合には発生しません。
## 構文

Expand Down
3 changes: 1 addition & 2 deletions files/ja/web/api/htmlmediaelement/play/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ play()

{{Glossary("user agent","ユーザーエージェント")}}が自動またはスクリプト起動によるメディアの再生を許可しないように設定されている場合、`play()` を呼び出すと返されたプロミスが直ちに `NotAllowedError` で拒否されます。 ウェブサイトはこの状況に対処する準備をしておくべきです。 例えば、サイトには再生が自動的に開始されたことを前提としたユーザーインターフェイスを表示するのではなく、返されたプロミスが解決されたか拒否されたかに基づいて UI を更新する必要があります。 詳しくは、以下の[](#例)を参照してください。

> [!NOTE]
> `play()` メソッドを使用すると、ユーザーはメディアの再生を許可するように要求され、返されたプロミスが解決されるまでに遅延が生じる可能性があります。 コードが即座の応答を期待していないことを確認してください。
> **メモ:** `play()` メソッドを使用すると、ユーザーはメディアの再生を許可するように要求され、返されたプロミスが解決されるまでに遅延が生じる可能性があります。 コードが即座の応答を期待していないことを確認してください。
自動再生および自動再生のブロックの詳細については、[メディアおよびウェブオーディオ API の自動再生ガイド](/ja/docs/Web/Media/Autoplay_guide)を参照してください。

Expand Down
3 changes: 1 addition & 2 deletions files/ja/web/api/idbcursor/direction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ l10n:

このシンプルな断片では、トランザクションを作成し、オブジェクトストアを取得し、カーソルを使用してオブジェクトストア内の全レコードを走査します。それぞれの繰り返しにおいて、カーソルの方向を記録します。

> [!NOTE]
> `direction` プロパティは読み取り専用なので、このプロパティを用いてカーソルが動く方向を変えることはできません。カーソルが動く方向は、{{domxref("IDBObjectStore.openCursor")}} の第 2 引数で設定します。
> **メモ:** `direction` プロパティは読み取り専用なので、このプロパティを用いてカーソルが動く方向を変えることはできません。カーソルが動く方向は、{{domxref("IDBObjectStore.openCursor")}} の第 2 引数で設定します。
カーソルを使う場合、データをキーで選択する必要はなく、単に全て取得できます。また、ループ中のそれぞれの繰り返しにおいて、カーソルオブジェクトが指している現在のレコードからデータを `cursor.value.foo` のようにして取得できます。動く例全体は、[IDBCursor example](https://github.com/mdn/dom-examples/tree/main/indexeddb-examples/idbcursor) を参照してください。([動く例を見る](https://mdn.github.io/dom-examples/indexeddb-examples/idbcursor/))

Expand Down
3 changes: 1 addition & 2 deletions files/ja/web/api/idbcursor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ l10n:

{{APIRef("IndexedDB")}} {{AvailableInWorkers}}

> [!NOTE]
> {{domxref("IDBCursorWithValue")}} と混同しないでください。これは **`IDBCursor`** インターフェイスに **`value`** プロパティを追加しただけのものです。
> **メモ:** {{domxref("IDBCursorWithValue")}} と混同しないでください。これは **`IDBCursor`** インターフェイスに **`value`** プロパティを追加しただけのものです。
**`IDBCursor`**[IndexedDB API](/ja/docs/Web/API/IndexedDB_API) のインターフェイスで、複数レコードを走査したり繰り返し処理をしたりするための[カーソル](/ja/docs/Web/API/IndexedDB_API/Basic_Terminology#%E3%82%AB%E3%83%BC%E3%82%BD%E3%83%AB)です。

Expand Down

0 comments on commit 669ae83

Please sign in to comment.