From 05b2650717b84d199f6ebd5df8a8f9d1e3b23f3f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 23 Feb 2021 15:56:25 +0100 Subject: sync: move --- .../api/htmlhyperlinkelementutils/hash/index.html | 60 --------------- .../api/htmlhyperlinkelementutils/host/index.html | 65 ---------------- .../htmlhyperlinkelementutils/hostname/index.html | 56 -------------- .../api/htmlhyperlinkelementutils/href/index.html | 58 -------------- .../web/api/htmlhyperlinkelementutils/index.html | 88 ---------------------- .../htmlhyperlinkelementutils/origin/index.html | 64 ---------------- .../htmlhyperlinkelementutils/password/index.html | 58 -------------- .../htmlhyperlinkelementutils/pathname/index.html | 57 -------------- .../api/htmlhyperlinkelementutils/port/index.html | 57 -------------- .../htmlhyperlinkelementutils/protocol/index.html | 56 -------------- .../htmlhyperlinkelementutils/search/index.html | 63 ---------------- .../htmlhyperlinkelementutils/tostring/index.html | 39 ---------- .../htmlhyperlinkelementutils/username/index.html | 57 -------------- 13 files changed, 778 deletions(-) delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/hash/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/host/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/hostname/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/href/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/origin/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/password/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/pathname/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/port/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/search/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/tostring/index.html delete mode 100644 files/ja/web/api/htmlhyperlinkelementutils/username/index.html (limited to 'files/ja/web/api/htmlhyperlinkelementutils') diff --git a/files/ja/web/api/htmlhyperlinkelementutils/hash/index.html b/files/ja/web/api/htmlhyperlinkelementutils/hash/index.html deleted file mode 100644 index 293b73e2f0..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/hash/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -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/htmlhyperlinkelementutils/host/index.html b/files/ja/web/api/htmlhyperlinkelementutils/host/index.html deleted file mode 100644 index 876dd935c1..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/host/index.html +++ /dev/null @@ -1,65 +0,0 @@ ---- -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/htmlhyperlinkelementutils/hostname/index.html b/files/ja/web/api/htmlhyperlinkelementutils/hostname/index.html deleted file mode 100644 index 46c38302f1..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/hostname/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -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/htmlhyperlinkelementutils/href/index.html b/files/ja/web/api/htmlhyperlinkelementutils/href/index.html deleted file mode 100644 index a371695230..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/href/index.html +++ /dev/null @@ -1,58 +0,0 @@ ---- -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/htmlhyperlinkelementutils/index.html b/files/ja/web/api/htmlhyperlinkelementutils/index.html deleted file mode 100644 index bc0b1f182a..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/index.html +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: HTMLHyperlinkElementUtils -slug: Web/API/HTMLHyperlinkElementUtils -tags: - - API - - Experimental - - Mixin - - URL API -translation_of: Web/API/HTMLHyperlinkElementUtils ---- -

{{ApiRef("URL API")}}{{SeeCompatTable}}

- -

HTMLHyperlinkElementUtils ミックスインは、{{domxref("HTMLAnchorElement")}} および {{domxref("HTMLAreaElement")}} と連携するユーティリティのメソッドとプロパティを定義します。 これらのユーティリティを使用すると、URL などの一般的な機能を処理できます。

- -

このタイプのオブジェクトはありませんが、いくつかのオブジェクトの {{domxref("HTMLAnchorElement")}} および {{domxref("HTMLAreaElement")}} がそれを実装しています。

- -

プロパティ

- -
-

: このインターフェイスはプロパティを継承しません。

-
- -
-
{{domxref("HTMLHyperlinkElementUtils.href")}}
-
これは、URL 全体を含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.protocol")}}
-
これは、最後の ':' を含む URL のプロトコルスキームを含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.host")}}
-
これは、ホストを含む {{domxref("USVString")}} です。 ホストは、ホスト名の後に、URL のポートが空でない場合、':'、および URL のポートが続きます(空は、指定されていないか、URL のスキームのデフォルトポートとして指定されているために発生する可能性があります)。
-
{{domxref("HTMLHyperlinkElementUtils.hostname")}}
-
これは、URL のドメイン(ホスト名)を含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.port")}}
-
これは、URL のポート番号を含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.pathname")}}
-
これは、最初の '/' とその後に続く URL のパスを含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.search")}}
-
これは、'?' とその後に続く URL のパラメーターを含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.hash")}}
-
これは、'#' とその後に続く URL のフラグメント識別子を含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.username")}}
-
これは、ドメイン名の前に指定されたユーザー名を含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.password")}}
-
これは、ドメイン名の前に指定されたパスワードを含む {{domxref("USVString")}} です。
-
{{domxref("HTMLHyperlinkElementUtils.origin")}} {{readonlyInline}}
-
これは、URL のオリジン(スキーム、ドメイン、ポート)を含む {{domxref("USVString")}} を返します。
-
- -

メソッド

- -
-

: このインターフェイスはメソッドを継承しません。

-
- -
-
{{domxref("HTMLHyperlinkElementUtils.toString()")}}
-
これは、URL 全体を含む {{domxref("USVString")}} を返します。 {{domxref("HTMLHyperlinkElementUtils.href")}} の同義語ですが、値を変更するために使用することはできません。
-
- -

仕様

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

ブラウザーの互換性

- - - -

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

- -

関連情報

- - diff --git a/files/ja/web/api/htmlhyperlinkelementutils/origin/index.html b/files/ja/web/api/htmlhyperlinkelementutils/origin/index.html deleted file mode 100644 index 8353b66f0a..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/origin/index.html +++ /dev/null @@ -1,64 +0,0 @@ ---- -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/htmlhyperlinkelementutils/password/index.html b/files/ja/web/api/htmlhyperlinkelementutils/password/index.html deleted file mode 100644 index d973268e54..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/password/index.html +++ /dev/null @@ -1,58 +0,0 @@ ---- -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/htmlhyperlinkelementutils/pathname/index.html b/files/ja/web/api/htmlhyperlinkelementutils/pathname/index.html deleted file mode 100644 index a8b227269c..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/pathname/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -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/htmlhyperlinkelementutils/port/index.html b/files/ja/web/api/htmlhyperlinkelementutils/port/index.html deleted file mode 100644 index a97a28511a..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/port/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -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/htmlhyperlinkelementutils/protocol/index.html b/files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html deleted file mode 100644 index 9b800001ea..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -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/htmlhyperlinkelementutils/search/index.html b/files/ja/web/api/htmlhyperlinkelementutils/search/index.html deleted file mode 100644 index 3d09ac6610..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/search/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -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/htmlhyperlinkelementutils/tostring/index.html b/files/ja/web/api/htmlhyperlinkelementutils/tostring/index.html deleted file mode 100644 index 1edb61e862..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/tostring/index.html +++ /dev/null @@ -1,39 +0,0 @@ ---- -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/htmlhyperlinkelementutils/username/index.html b/files/ja/web/api/htmlhyperlinkelementutils/username/index.html deleted file mode 100644 index 2bda58e2d2..0000000000 --- a/files/ja/web/api/htmlhyperlinkelementutils/username/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -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