aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormongolyy <mongolyy@gmail.com>2022-02-21 23:30:29 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-03-12 21:36:02 +0900
commita96f7b08aee032f0010e389663c5732b84949e9a (patch)
treebf2b8ee1628df266c179d86d9b783e3e96f7ade7
parent885fc19d39b08c2218e51133d47808e567ac3192 (diff)
downloadtranslated-content-a96f7b08aee032f0010e389663c5732b84949e9a.tar.gz
translated-content-a96f7b08aee032f0010e389663c5732b84949e9a.tar.bz2
translated-content-a96f7b08aee032f0010e389663c5732b84949e9a.zip
文言の微修正
-rw-r--r--files/ja/web/api/cookiestore/change_event/index.md4
-rw-r--r--files/ja/web/api/cookiestore/get/index.md6
-rw-r--r--files/ja/web/api/cookiestore/index.md2
-rw-r--r--files/ja/web/api/cookiestore/set/index.md4
4 files changed, 8 insertions, 8 deletions
diff --git a/files/ja/web/api/cookiestore/change_event/index.md b/files/ja/web/api/cookiestore/change_event/index.md
index 4596455c67..22124ad956 100644
--- a/files/ja/web/api/cookiestore/change_event/index.md
+++ b/files/ja/web/api/cookiestore/change_event/index.md
@@ -26,7 +26,7 @@ cookieStore.onchange = event => { }
## 例
-Cookieが変更されたときに通知を受けるには、以下のように {{domxref("EventTarget.addEventListener", "addEventListener()")}} を使って `cookieStore` インスタンスにハンドラを追加することが可能です。
+Cookie が変更されたときに通知を受けるには、以下のように {{domxref("EventTarget.addEventListener", "addEventListener()")}} を使って `cookieStore` インスタンスにハンドラを追加可能です。
```js
cookieStore.addEventListener('change', function(event) {
@@ -34,7 +34,7 @@ cookieStore.addEventListener('change', function(event) {
});
```
-あるいは、`CookieStore.onchange` イベントハンドラープロパティを使用して、`change` イベントのハンドラを定義することもできます。
+あるいは、`CookieStore.onchange` イベントハンドラープロパティを使用して、`change` イベントのハンドラを定義できます。
```js
cookieStore.onchange = function(event) {
diff --git a/files/ja/web/api/cookiestore/get/index.md b/files/ja/web/api/cookiestore/get/index.md
index cbefeb0b52..5ca96ed26a 100644
--- a/files/ja/web/api/cookiestore/get/index.md
+++ b/files/ja/web/api/cookiestore/get/index.md
@@ -11,7 +11,7 @@ browser-compat: api.CookieStore.get
---
{{securecontext_header}}{{DefaultAPISidebar("Cookie Store API")}}
-{{Domxref("CookieStore")}} インターフェイスの **`get()`** メソッドは、与えられた名前またはオプションオブジェクトを持つ一つの Cookie を返します(下記参照)。このメソッドは渡されたパラメータに最初にマッチする Cookie を返します。
+{{Domxref("CookieStore")}} インターフェイスの **`get()`** メソッドは、与えられた名前またはオプションオブジェクトを持つ1つの Cookie を返します(下記参照)。このメソッドは渡されたパラメータに最初にマッチする Cookie を返します。
## 構文
@@ -62,7 +62,7 @@ var cookie = CookieStore.get(options);
- `"lax"`
- : Cookie は、通常のクロスサイト・サブクエスト(例えば、画像やフレームをサードパーティのサイトにロードするため)には送信されませんが、ユーザーが元のサイト内を移動しているとき(すなわち、リンクをたどっているとき)には送信されます。
- `"none"`
- - : クッキーは、すべてのコンテキストで送信されます。
+ - : Cookie は、すべてのコンテキストで送信されます。
> **Note:** SameSite cookies の詳細については、 [SameSite cookies explained](https://web.dev/samesite-cookies-explained/) をご覧ください。
@@ -73,7 +73,7 @@ var cookie = CookieStore.get(options);
## 例
-この例では、"cookie1" という名前の Cookie を返します。もし Cookie が見つかれば、プロミスの結果は一つの Cookie の詳細を含むオブジェクトになります。
+この例では、"cookie1" という名前の Cookie を返します。もし Cookie が見つかれば、プロミスの結果は1つの Cookie の詳細を含むオブジェクトになります。
```js
let cookie = cookieStore.get('cookie1');
diff --git a/files/ja/web/api/cookiestore/index.md b/files/ja/web/api/cookiestore/index.md
index 40d6a5c589..2ec1548cd3 100644
--- a/files/ja/web/api/cookiestore/index.md
+++ b/files/ja/web/api/cookiestore/index.md
@@ -21,7 +21,7 @@ browser-compat: api.CookieStore
- {{domxref("CookieStore.delete()")}}
- : `delete()` メソッドは与えられた名前またはオプションオブジェクトを持つCookieを削除します。削除が完了すると解決される {{jsxref("Promise")}} が返されます。
- {{domxref("CookieStore.get()")}}
- - : `get()` メソッドは与えられた名前またはオプションオブジェクトで一つのCookieを取得します。一つのCookieの詳細に解決される {{jsxref("Promise")}} を返します。
+ - : `get()` メソッドは与えられた名前またはオプションオブジェクトで1つのCookieを取得します。1つのCookieの詳細に解決される {{jsxref("Promise")}} を返します。
- {{domxref("CookieStore.getAll()")}}
- : `getAll()` メソッドはマッチするすべてのCookieを取得します。Cookieのリストに解決される {{jsxref("Promise")}} を返します。
- {{domxref("CookieStore.set()")}}
diff --git a/files/ja/web/api/cookiestore/set/index.md b/files/ja/web/api/cookiestore/set/index.md
index 8fa58a7303..b375b088e0 100644
--- a/files/ja/web/api/cookiestore/set/index.md
+++ b/files/ja/web/api/cookiestore/set/index.md
@@ -49,9 +49,9 @@ var promise = cookieStore.set(options);
- `"strict"`
- : Cookie は、ファーストパーティのコンテキストでのみ送信され、サードパーティのウェブサイトによるリクエストと一緒に送信されることはありません
- `"lax"`
- - : Cookie は、通常のクロスサイト・サブクエスト(例えば、画像やフレームをサードパーティのサイトにロードするため)には送信されませんが、ユーザーが元のサイト内を移動しているとき(すなわち、リンクをたどっているとき)には送信されます。
+ - : Cookie は、通常のクロスサイト・サブクエスト(例えば、画像やフレームをサードパーティのサイトにロードするため)には送信されません。しかし、ユーザーが元のサイト内を移動しているとき(すなわち、リンクをたどっているとき)には送信されます。
- `"none"`
- - : クッキーは、すべてのコンテキストで送信されます。
+ - : Cookie は、すべてのコンテキストで送信されます。
> **Note:** SameSite cookies の詳細については、 [SameSite cookies explained](https://web.dev/samesite-cookies-explained/) をご覧ください。