From 03385cc9f4f157cec2e5fd05f35e6af646055908 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 14 Sep 2021 11:07:46 +0900 Subject: Web/API以下の文書内のリンクURLを正規化 (#2360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /en-US へのリンクを /ja へのリンクに修正 - /ja が付いていないものに /ja を付加 - MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正 --- files/ja/web/api/history_api/index.html | 2 +- files/ja/web/api/history_api/working_with_the_history_api/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'files/ja/web/api/history_api') diff --git a/files/ja/web/api/history_api/index.html b/files/ja/web/api/history_api/index.html index e10f1e7498..f9a577390c 100644 --- a/files/ja/web/api/history_api/index.html +++ b/files/ja/web/api/history_api/index.html @@ -12,7 +12,7 @@ translation_of: Web/API/History_API ---
{{DefaultAPISidebar("History API")}}
-

DOM の {{DOMxRef("Window")}} オブジェクトは、ブラウザーのセッション履歴 (WebExtensions history と混同しないように) へのアクセスを {{DOMxRef("Window.history","history")}} オブジェクトを介して提供しています。このオブジェクトは、ユーザーの履歴の中を前のページや後のページへ移動したり、履歴スタックの中を操作したりするのに便利なメソッドやプロパティが提供されています。

+

DOM の {{DOMxRef("Window")}} オブジェクトは、ブラウザーのセッション履歴 (WebExtensions history と混同しないように) へのアクセスを {{DOMxRef("Window.history","history")}} オブジェクトを介して提供しています。このオブジェクトは、ユーザーの履歴の中を前のページや後のページへ移動したり、履歴スタックの中を操作したりするのに便利なメソッドやプロパティが提供されています。

概念と使用方法

diff --git a/files/ja/web/api/history_api/working_with_the_history_api/index.html b/files/ja/web/api/history_api/working_with_the_history_api/index.html index a2fb053d73..a031ada67c 100644 --- a/files/ja/web/api/history_api/working_with_the_history_api/index.html +++ b/files/ja/web/api/history_api/working_with_the_history_api/index.html @@ -67,7 +67,7 @@ history.pushState(stateObj, "page 2", "bar.html");

新しい URLが、変更前のURLから hash のみを変更した URL である場合であっても、 pushState()hashchange イベントを発火させることはないと注記しておきます。

-

In a XUL document, it creates the specified XUL element.

+

In a XUL document, it creates the specified XUL element.

In other documents, it creates an element with a null namespace URI.

@@ -86,7 +86,7 @@ history.pushState(stateObj, "page 2", "bar.html");
var stateObj = { foo: "bar" };
 history.pushState(stateObj, "page 2", "bar.html");
-

この2行のコードの説明は pushState()の例 のセクションで見ることができます。次に、http://mozilla.org/bar.html が次の JavaScript を実行するものとします。

+

この2行のコードの説明は pushState()の例 のセクションで見ることができます。次に、http://mozilla.org/bar.html が次の JavaScript を実行するものとします。

history.replaceState(stateObj, "page 3", "bar2.html");
-- cgit v1.2.3-54-g00ecf