From 05b2650717b84d199f6ebd5df8a8f9d1e3b23f3f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 23 Feb 2021 15:56:25 +0100 Subject: sync: move --- files/ja/web/api/htmlanchorelement/hash/index.html | 60 ++++++++++++++++++++ files/ja/web/api/htmlanchorelement/host/index.html | 65 ++++++++++++++++++++++ .../web/api/htmlanchorelement/hostname/index.html | 56 +++++++++++++++++++ files/ja/web/api/htmlanchorelement/href/index.html | 58 +++++++++++++++++++ .../ja/web/api/htmlanchorelement/origin/index.html | 64 +++++++++++++++++++++ .../web/api/htmlanchorelement/password/index.html | 58 +++++++++++++++++++ .../web/api/htmlanchorelement/pathname/index.html | 57 +++++++++++++++++++ files/ja/web/api/htmlanchorelement/port/index.html | 57 +++++++++++++++++++ .../web/api/htmlanchorelement/protocol/index.html | 56 +++++++++++++++++++ .../ja/web/api/htmlanchorelement/search/index.html | 63 +++++++++++++++++++++ .../web/api/htmlanchorelement/tostring/index.html | 39 +++++++++++++ .../web/api/htmlanchorelement/username/index.html | 57 +++++++++++++++++++ 12 files changed, 690 insertions(+) create mode 100644 files/ja/web/api/htmlanchorelement/hash/index.html create mode 100644 files/ja/web/api/htmlanchorelement/host/index.html create mode 100644 files/ja/web/api/htmlanchorelement/hostname/index.html create mode 100644 files/ja/web/api/htmlanchorelement/href/index.html create mode 100644 files/ja/web/api/htmlanchorelement/origin/index.html create mode 100644 files/ja/web/api/htmlanchorelement/password/index.html create mode 100644 files/ja/web/api/htmlanchorelement/pathname/index.html create mode 100644 files/ja/web/api/htmlanchorelement/port/index.html create mode 100644 files/ja/web/api/htmlanchorelement/protocol/index.html create mode 100644 files/ja/web/api/htmlanchorelement/search/index.html create mode 100644 files/ja/web/api/htmlanchorelement/tostring/index.html create mode 100644 files/ja/web/api/htmlanchorelement/username/index.html (limited to 'files/ja/web/api/htmlanchorelement') diff --git a/files/ja/web/api/htmlanchorelement/hash/index.html b/files/ja/web/api/htmlanchorelement/hash/index.html new file mode 100644 index 0000000000..293b73e2f0 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/hash/index.html @@ -0,0 +1,60 @@ +--- +title: HTMLHyperlinkElementUtils.hash +slug: Web/API/HTMLHyperlinkElementUtils/hash +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/hash +--- +
{{ APIRef("URLUtils") }}
+ +

HTMLHyperlinkElementUtils.hash プロパティは、'#' の後に URL のフラグメント識別子が続く {{domxref("USVString")}} を返します。

+ +

フラグメントはパーセントデコードされていません。 URL にフラグメント識別子がない場合、このプロパティには空の文字列 "" が含まれます。

+ +

構文

+ +
string = object.hash;
+object.hash = string;
+
+ +

+ +
<a id="myAnchor" href="/en-US/docs/HTMLHyperlinkElementUtils.href#Examples">Examples</a>
+<script>
+  var anchor = document.getElementById("myAnchor");
+  console.log(anchor.hash); // 戻り値は '#Examples'
+</script>
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-hash', 'HTMLHyperlinkElementUtils.hash')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.hash")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/host/index.html b/files/ja/web/api/htmlanchorelement/host/index.html new file mode 100644 index 0000000000..876dd935c1 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/host/index.html @@ -0,0 +1,65 @@ +--- +title: HTMLHyperlinkElementUtils.host +slug: Web/API/HTMLHyperlinkElementUtils/host +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/host +--- +
{{ApiRef("URL API")}}
+ +

HTMLHyperlinkElementUtils.hostプロパティは、ホストを含む {{domxref("USVString")}} です。 ホストは、ホスト名の後に、URL のポートが空でない場合、':'、および URL のポートが続きます。

+ +

構文

+ +
string = object.host;
+object.host = string;
+
+ +

+ +
var anchor = document.createElement("a");
+
+anchor.href = "https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils.host"
+anchor.host == "developer.mozilla.org"
+
+anchor.href = "https://developer.mozilla.org:443/en-US/HTMLHyperlinkElementUtils.host"
+anchor.host == "developer.mozilla.org"
+// 443 がスキームのデフォルトポートであるため、ポート番号は含まれません
+
+anchor.href = "https://developer.mozilla.org:4097/en-US/HTMLHyperlinkElementUtils.host"
+anchor.host == "developer.mozilla.org:4097"
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-host', 'HTMLHyperlinkElementUtils.host')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.host")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/hostname/index.html b/files/ja/web/api/htmlanchorelement/hostname/index.html new file mode 100644 index 0000000000..46c38302f1 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/hostname/index.html @@ -0,0 +1,56 @@ +--- +title: HTMLHyperlinkElementUtils.hostname +slug: Web/API/HTMLHyperlinkElementUtils/hostname +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/hostname +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.hostname プロパティは、URL のドメインを含む {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.hostname;
+object.hostname = string;
+
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.hostname"> 要素がドキュメントにあるとします
+var anchor = document.getElementByID("myAnchor");
+var result = anchor.hostname; // 戻り値: 'developer.mozilla.org'
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-hostname', 'HTMLHyperlinkElementUtils.hostname')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.hostname")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/href/index.html b/files/ja/web/api/htmlanchorelement/href/index.html new file mode 100644 index 0000000000..a371695230 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/href/index.html @@ -0,0 +1,58 @@ +--- +title: HTMLHyperlinkElementUtils.href +slug: Web/API/HTMLHyperlinkElementUtils/href +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Location + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/href +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.href プロパティは、URL 全体を含む {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.href;
+object.href = string;
+
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href"> 要素がドキュメントにあるとします
+var anchor = document.getElementById("myAnchor");
+var result = anchor.href; // 戻り値: 'https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-href', 'HTMLHyperlinkElementUtils.href')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.href")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/origin/index.html b/files/ja/web/api/htmlanchorelement/origin/index.html new file mode 100644 index 0000000000..8353b66f0a --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/origin/index.html @@ -0,0 +1,64 @@ +--- +title: HTMLHyperlinkElementUtils.origin +slug: Web/API/HTMLHyperlinkElementUtils/origin +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Read-only + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/origin +--- +

{{APIRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.origin 読み取り専用プロパティは、表現された URL のオリジンの Unicode シリアル化を含む {{domxref("USVString")}} です。 それは、

+ + + +

{{AvailableInWorkers}}

+ +

構文

+ +
string = object.origin;
+
+ +

+ +
// このページのオリジンを返します
+var result = window.location.origin; // 戻り値: 'https://developer.mozilla.org'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-origin', 'HTMLHyperlinkElementUtils.origin')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.origin")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/password/index.html b/files/ja/web/api/htmlanchorelement/password/index.html new file mode 100644 index 0000000000..d973268e54 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/password/index.html @@ -0,0 +1,58 @@ +--- +title: HTMLHyperlinkElementUtils.password +slug: Web/API/HTMLHyperlinkElementUtils/password +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/password +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.password プロパティは、ドメイン名の前に指定されたパスワードを含む {{domxref("USVString")}} です。

+ +

最初に username プロパティを設定せずに設定しようとすると、静かに失敗します。

+ +

構文

+ +
string = object.password;
+object.password = string;
+
+ +

+ +
// <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.username"> 要素がドキュメントにあるとします
+var anchor = document.getElementByID("myAnchor");
+var result = anchor.password; // 戻り値: 'flabada'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-password', 'HTMLHyperlinkElementUtils.password')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.password")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/pathname/index.html b/files/ja/web/api/htmlanchorelement/pathname/index.html new file mode 100644 index 0000000000..a8b227269c --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/pathname/index.html @@ -0,0 +1,57 @@ +--- +title: HTMLHyperlinkElementUtils.pathname +slug: Web/API/HTMLHyperlinkElementUtils/pathname +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/pathname +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.pathname プロパティは、最初の '/' とその後に続く URL のパス(または、パスがない場合は空の文字列)を含む {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.pathname;
+object.pathname = string;
+
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.pathname"> 要素がドキュメントにあるとします
+var anchor = document.getElementById("myAnchor");
+var result = anchor.pathname; // 戻り値: '/en-US/docs/HTMLHyperlinkElementUtils.pathname'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-pathname', 'HTMLHyperlinkElementUtils.pathname')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.pathname")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/port/index.html b/files/ja/web/api/htmlanchorelement/port/index.html new file mode 100644 index 0000000000..a97a28511a --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/port/index.html @@ -0,0 +1,57 @@ +--- +title: HTMLHyperlinkElementUtils.port +slug: Web/API/HTMLHyperlinkElementUtils/port +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/port +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.port プロパティは、URL のポート番号を含む {{domxref("USVString")}} です。 URL に明示的なポート番号が含まれていない場合は、'' に設定されます。

+ +

構文

+ +
string = object.port;
+object.port = string;
+
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org:443/en-US/docs/HTMLHyperlinkElementUtils.port"> 要素がドキュメントにあるとします
+var anchor = document.getElementByID("myAnchor");
+var result = anchor.port; // 戻り値: '443'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-port', 'HTMLHyperlinkElementUtils.port')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.port")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/protocol/index.html b/files/ja/web/api/htmlanchorelement/protocol/index.html new file mode 100644 index 0000000000..9b800001ea --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/protocol/index.html @@ -0,0 +1,56 @@ +--- +title: HTMLHyperlinkElementUtils.protocol +slug: Web/API/HTMLHyperlinkElementUtils/protocol +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/protocol +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.protocol プロパティは、最後の ':' を含む URL のプロトコルスキームを表す {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.protocol;
+object.protocol = string;
+
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils.protocol"> 要素がドキュメントにあるとします
+var anchor = document.getElementById("myAnchor");
+var result = anchor.protocol; // 戻り値: 'https:'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-protocol', 'HTMLHyperlinkElementUtils.protocol')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.protocol")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/search/index.html b/files/ja/web/api/htmlanchorelement/search/index.html new file mode 100644 index 0000000000..3d09ac6610 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/search/index.html @@ -0,0 +1,63 @@ +--- +title: HTMLHyperlinkElementUtils.search +slug: Web/API/HTMLHyperlinkElementUtils/search +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/search +--- +
{{ApiRef("URL API")}}
+ +

HTMLHyperlinkElementUtils.search プロパティは、クエリー文字列とも呼ばれる検索文字列、つまり '?' とその後に続く URL のパラメーターを含む {{domxref("USVString")}} です。

+ +

最新のブラウザーでは、URLSearchParamsURL.searchParams を提供して、クエリー文字列からパラメーターを簡単に解析できるようにしています。

+ +

構文

+ +
string = object.search;
+object.search = string;
+
+ +

+ +
//  <a id="myAnchor" href="https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.search?q=123"> 要素がドキュメントにあるとします
+var anchor = document.getElementById("myAnchor");
+var queryString = anchor.search; // 戻り値: '?q=123'
+
+// Further parsing:
+let params = new URLSearchParams(queryString);
+let q = parseInt(params.get("q") // 数値の 123 です
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-search', 'HTMLHyperlinkElementUtils.search')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.search")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/tostring/index.html b/files/ja/web/api/htmlanchorelement/tostring/index.html new file mode 100644 index 0000000000..1edb61e862 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/tostring/index.html @@ -0,0 +1,39 @@ +--- +title: HTMLHyperlinkElementUtils.toString() +slug: Web/API/HTMLHyperlinkElementUtils/toString +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Location + - Method + - Stringifier + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/toString +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.toString() 文字列化メソッドは、URL 全体を含む {{domxref("USVString")}} を返します。 これは、{{domxref("HTMLHyperlinkElementUtils.href")}} の読み取り専用バージョンです。

+ +

構文

+ +
string = object.toString();
+ +

+ +
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils/toString"> 要素がドキュメントにあるとします
+var anchor = document.getElementById("myAnchor");
+var result = anchor.toString(); // 戻り値: 'https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils/toString'
+
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.toString")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/htmlanchorelement/username/index.html b/files/ja/web/api/htmlanchorelement/username/index.html new file mode 100644 index 0000000000..2bda58e2d2 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/username/index.html @@ -0,0 +1,57 @@ +--- +title: HTMLHyperlinkElementUtils.username +slug: Web/API/HTMLHyperlinkElementUtils/username +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/username +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.username プロパティは、ドメイン名の前に指定されたユーザー名を含む {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.username;
+object.username = string;
+
+ +

+ +
// <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.username"> 要素がドキュメントにあるとします
+var anchor = document.getElementByID("myAnchor");
+var result = anchor.username; // 戻り値: 'anonymous'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-username', 'HTMLHyperlinkElementUtils.username')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.username")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf