From 14d821123c0c1b32911a0f7b88f3a78a8517115f Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 14 Oct 2024 21:33:21 +0900 Subject: [PATCH] =?UTF-8?q?2023/04/07=20=E6=99=82=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/htmlanchorelement/host/index.md | 7 ++++--- files/ja/web/api/htmlanchorelement/href/index.md | 5 +++-- files/ja/web/api/htmlanchorelement/password/index.md | 3 ++- files/ja/web/api/htmlanchorelement/protocol/index.md | 3 ++- files/ja/web/api/htmlanchorelement/referrerpolicy/index.md | 3 ++- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/files/ja/web/api/htmlanchorelement/host/index.md b/files/ja/web/api/htmlanchorelement/host/index.md index 55957b12485b2c..c941560a135f68 100644 --- a/files/ja/web/api/htmlanchorelement/host/index.md +++ b/files/ja/web/api/htmlanchorelement/host/index.md @@ -1,5 +1,6 @@ --- title: "HTMLAnchorElement: host プロパティ" +short-title: host slug: Web/API/HTMLAnchorElement/host l10n: sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18 @@ -18,14 +19,14 @@ l10n: ```js const anchor = document.createElement("a"); -anchor.href = "https://developer.mozilla.org/en-US/HTMLAnchorElement"; +anchor.href = "https://developer.mozilla.org/ja/HTMLAnchorElement"; anchor.host === "developer.mozilla.org"; -anchor.href = "https://developer.mozilla.org:443/en-US/HTMLAnchorElement"; +anchor.href = "https://developer.mozilla.org:443/ja/HTMLAnchorElement"; anchor.host === "developer.mozilla.org"; // The port number is not included because 443 is the scheme's default port -anchor.href = "https://developer.mozilla.org:4097/en-US/HTMLAnchorElement"; +anchor.href = "https://developer.mozilla.org:4097/ja/HTMLAnchorElement"; anchor.host === "developer.mozilla.org:4097"; ``` diff --git a/files/ja/web/api/htmlanchorelement/href/index.md b/files/ja/web/api/htmlanchorelement/href/index.md index 0521b55a2f8996..b5f0110b5bf5c2 100644 --- a/files/ja/web/api/htmlanchorelement/href/index.md +++ b/files/ja/web/api/htmlanchorelement/href/index.md @@ -1,5 +1,6 @@ --- title: "HTMLAnchorElement: href プロパティ" +short-title: href slug: Web/API/HTMLAnchorElement/href l10n: sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18 @@ -16,9 +17,9 @@ l10n: ## 例 ```js -// 要素が文書にあったとします +// 要素が文書にあったとします const anchor = document.getElementById("myAnchor"); -anchor.href; // returns 'https://developer.mozilla.org/en-US/HTMLAnchorElement' +anchor.href; // returns 'https://developer.mozilla.org/ja/HTMLAnchorElement' ``` ## 仕様書 diff --git a/files/ja/web/api/htmlanchorelement/password/index.md b/files/ja/web/api/htmlanchorelement/password/index.md index aa7f13bde3852e..0ce298449b995e 100644 --- a/files/ja/web/api/htmlanchorelement/password/index.md +++ b/files/ja/web/api/htmlanchorelement/password/index.md @@ -1,5 +1,6 @@ --- title: "HTMLAnchorElement: password プロパティ" +short-title: password slug: Web/API/HTMLAnchorElement/password l10n: sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18 @@ -18,7 +19,7 @@ l10n: ## 例 ```js -// 要素が文書にあったとします +// 要素が文書にあったとします const anchor = document.getElementByID("myAnchor"); anchor.password; // 'flabada' を返す ``` diff --git a/files/ja/web/api/htmlanchorelement/protocol/index.md b/files/ja/web/api/htmlanchorelement/protocol/index.md index e17ed53e197829..90ff374944ff30 100644 --- a/files/ja/web/api/htmlanchorelement/protocol/index.md +++ b/files/ja/web/api/htmlanchorelement/protocol/index.md @@ -1,5 +1,6 @@ --- title: "HTMLAnchorElement: protocol プロパティ" +short-title: protocol slug: Web/API/HTMLAnchorElement/protocol l10n: sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18 @@ -18,7 +19,7 @@ l10n: ### アンカーリンクのプロトコルを取得 ```js -// 要素が文書にあったとします。 +// 要素が文書にあったとします。 const anchor = document.getElementById("myAnchor"); anchor.protocol; // 'https:' を返す ``` diff --git a/files/ja/web/api/htmlanchorelement/referrerpolicy/index.md b/files/ja/web/api/htmlanchorelement/referrerpolicy/index.md index b2bfa27b7e774e..73aeff2042bb33 100644 --- a/files/ja/web/api/htmlanchorelement/referrerpolicy/index.md +++ b/files/ja/web/api/htmlanchorelement/referrerpolicy/index.md @@ -1,5 +1,6 @@ --- title: "HTMLAnchorElement: referrerPolicy プロパティ" +short-title: referrerPolicy slug: Web/API/HTMLAnchorElement/referrerPolicy l10n: sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18 @@ -38,7 +39,7 @@ l10n: const elt = document.createElement("a"); const linkText = document.createTextNode("My link"); elt.appendChild(linkText); -elt.href = "https://developer.mozilla.org/en-US/"; +elt.href = "https://developer.mozilla.org/ja/"; elt.referrerPolicy = "no-referrer"; const div = document.getElementById("divAround");