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");