From 05b2650717b84d199f6ebd5df8a8f9d1e3b23f3f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 23 Feb 2021 15:56:25 +0100 Subject: sync: move --- .../web/accessibility/aria/widgets/index.html | 72 ++++++++++ .../index.html | 69 ++++++++++ .../web/api/htmlhyperlinkelementutils/index.html | 88 +++++++++++++ .../accessibility/aria/widgets/overview/index.html | 72 ---------- files/ja/web/api/document/activeelement/index.html | 145 +++++++++++++++++++++ .../documentorshadowroot/activeelement/index.html | 145 --------------------- 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 ++++++++ .../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 -------- .../ja/web/api/nondocumenttypechildnode/index.html | 69 ---------- 32 files changed, 1064 insertions(+), 1064 deletions(-) create mode 100644 files/ja/conflicting/web/accessibility/aria/widgets/index.html create mode 100644 files/ja/conflicting/web/api/element_861159909c20acebf8e506c3bb0e2f7e/index.html create mode 100644 files/ja/orphaned/web/api/htmlhyperlinkelementutils/index.html delete mode 100644 files/ja/web/accessibility/aria/widgets/overview/index.html create mode 100644 files/ja/web/api/document/activeelement/index.html delete mode 100644 files/ja/web/api/documentorshadowroot/activeelement/index.html 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 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 delete mode 100644 files/ja/web/api/nondocumenttypechildnode/index.html (limited to 'files/ja') diff --git a/files/ja/conflicting/web/accessibility/aria/widgets/index.html b/files/ja/conflicting/web/accessibility/aria/widgets/index.html new file mode 100644 index 0000000000..c49401a24b --- /dev/null +++ b/files/ja/conflicting/web/accessibility/aria/widgets/index.html @@ -0,0 +1,72 @@ +--- +title: 概観 +slug: Web/Accessibility/ARIA/widgets/overview +tags: + - Accessibility + - JavaScript + - Landing + - NeedsUpdate +translation_of: Web/Accessibility/ARIA/widgets/overview +--- +
Warning: needs updating
+ +

入門

+ +

ここでは、動作する例とアクセシブルなJavaScript ウィジェットを作るベストプラクティスを見ていきます。

+ +

一般リソース

+ + + +

チェックボックス

+ + + + + + + +

スライダー

+ + + +

タブ

+ + + + + + + +

フォーム検証

+ + + +

+ + diff --git a/files/ja/conflicting/web/api/element_861159909c20acebf8e506c3bb0e2f7e/index.html b/files/ja/conflicting/web/api/element_861159909c20acebf8e506c3bb0e2f7e/index.html new file mode 100644 index 0000000000..2115525343 --- /dev/null +++ b/files/ja/conflicting/web/api/element_861159909c20acebf8e506c3bb0e2f7e/index.html @@ -0,0 +1,69 @@ +--- +title: NonDocumentTypeChildNode +slug: Web/API/NonDocumentTypeChildNode +tags: + - API + - DOM + - Interface + - NonDocumentTypeChildNode + - Reference +translation_of: Web/API/NonDocumentTypeChildNode +--- +
{{APIRef("DOM")}}
+ +

NonDocumentTypeChildNode インターフェイスは親を持つ {{domxref("Node")}} オブジェクトに固有な、{{domxref("DocumentType")}} に適していないメソッドを含みます。

+ +

NonDocumentTypeChildNode は純粋なインターフェースで、この型のオブジェクトを作ることはできません。 {{domxref("Element")}}、{{domxref("CharacterData")}} オブジェクトで実装されています。

+ +

プロパティ

+ +

継承されたプロパティはありません。

+ +
+
{{domxref("NonDocumentTypeChildNode.previousElementSibling")}} {{readonlyInline}}
+
このノードの親ノードの子リスト内にある、このノードの直前にある {{domxref("Element")}} を返します。リスト内でこのノードの前に {{domxref("Element")}} がない場合は null を返します。
+
{{domxref("NonDocumentTypeChildNode.nextElementSibling")}} {{readonlyInline}}
+
このノードの親ノードの子リスト内にある、このノードの直後にある {{domxref("Element")}} を返します。リスト内でこのノードの後に {{domxref("Element")}} がない場合は null を返します。
+
+ +

メソッド

+ +

継承、および実装されたメソッドはありません。

+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{SpecName('DOM WHATWG', '#interface-nondocumenttypechildnode', 'NonDocumentTypeChildNode')}}{{Spec2('DOM WHATWG')}}ElementTraversal インタフェースを{{domxref("ParentNode")}}、{{domxref("ChildNode")}}、NonDocumentTypeChildNode に分割しました。後者では previousElementSiblingnextElementSibling が定義されるようになりました。
+ {{domxref("CharacterData")}} と {{domxref("Element")}} は、新しいインタフェースを実装しました。
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}{{Spec2('Element Traversal')}}ElementTraversal 基本インターフェースにプロパティの初期定義を追加し、{{domxref("Element")}} で使用できるようにしました。.
+ +

ブラウザー実装状況

+ + + +

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

+ +

関連情報

+ + diff --git a/files/ja/orphaned/web/api/htmlhyperlinkelementutils/index.html b/files/ja/orphaned/web/api/htmlhyperlinkelementutils/index.html new file mode 100644 index 0000000000..bc0b1f182a --- /dev/null +++ b/files/ja/orphaned/web/api/htmlhyperlinkelementutils/index.html @@ -0,0 +1,88 @@ +--- +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/accessibility/aria/widgets/overview/index.html b/files/ja/web/accessibility/aria/widgets/overview/index.html deleted file mode 100644 index c49401a24b..0000000000 --- a/files/ja/web/accessibility/aria/widgets/overview/index.html +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: 概観 -slug: Web/Accessibility/ARIA/widgets/overview -tags: - - Accessibility - - JavaScript - - Landing - - NeedsUpdate -translation_of: Web/Accessibility/ARIA/widgets/overview ---- -
Warning: needs updating
- -

入門

- -

ここでは、動作する例とアクセシブルなJavaScript ウィジェットを作るベストプラクティスを見ていきます。

- -

一般リソース

- - - -

チェックボックス

- - - - - - - -

スライダー

- - - -

タブ

- - - - - - - -

フォーム検証

- - - -

- - diff --git a/files/ja/web/api/document/activeelement/index.html b/files/ja/web/api/document/activeelement/index.html new file mode 100644 index 0000000000..5fe59cbae6 --- /dev/null +++ b/files/ja/web/api/document/activeelement/index.html @@ -0,0 +1,145 @@ +--- +title: document.activeElement +slug: Web/API/DocumentOrShadowRoot/activeElement +tags: + - DOM + - Focus + - Gecko + - HTML5 + - NeedsTranslation + - 要更新 +translation_of: Web/API/DocumentOrShadowRoot/activeElement +translation_of_original: Web/API/Document/activeElement +original_slug: Web/API/Document/activeElement +--- +
{{ApiRef}}
+ +

概要

+ +

Returns the currently focused element, that is, the element that will get keystroke events if the user types any. This attribute is read only.

+ +

Often this will return an {{HTMLElement("input")}} or {{HTMLElement("textarea")}} object, if it has the text selection at the time.  If so, you can get more detail by using the element's selectionStart and selectionEnd properties.  Other times the focused element might be a {{HTMLElement("select")}} element (menu) or an {{HTMLElement("input")}} element, of type button, checkbox or radio.

+ +
注記: On Mac, elements that aren't text input elements tend not to get focus assigned to them.
+ +

Typically a user can press the tab key to move the focus around the page among focusable elements, and use the space bar to activate it (press a button, choose a radio).

+ +

Do not confuse focus with a selection over the document, consisting mostly of static text nodes.  See {{domxref("window.getSelection()")}} for that.

+ +

When there is no selection, the active element is the page's {{HTMLElement("body")}}.

+ +

{{Note("This attribute is part of the in-development HTML 5 specification.")}}

+ +

構文

+ +
var curElement = document.activeElement;
+
+ +

+ +
<!DOCTYPE HTML>
+<html>
+<head>
+    <script type="text/javascript" charset="utf-8">
+    function init() {
+
+        function onMouseUp(e) {
+            console.log(e);
+            var outputElement = document.getElementById('output-element');
+            var outputText = document.getElementById('output-text');
+            var selectedTextArea = document.activeElement;
+            var selection = selectedTextArea.value.substring(
+            selectedTextArea.selectionStart, selectedTextArea.selectionEnd);
+            outputElement.innerHTML = selectedTextArea.id;
+            outputText.innerHTML = selection;
+        }
+
+        document.getElementById("ta-example-one").addEventListener("mouseup", onMouseUp, false);
+        document.getElementById("ta-example-two").addEventListener("mouseup", onMouseUp, false);
+    }
+    </script>
+</head>
+<body onload="init()">
+<div>
+    Select some text from one of the Textareas below:
+</div>
+<form id="frm-example" action="#" accept-charset="utf-8">
+<textarea name="ta-example-one" id="ta-example-one" rows="8" cols="40">
+This is Textarea Example One:
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt, lorem a porttitor molestie, odio nibh iaculis libero, et accumsan nunc orci eu dui.
+</textarea>
+<textarea name="ta-example-two" id="ta-example-two" rows="8" cols="40">
+This is Textarea Example Two:
+Fusce ullamcorper, nisl ac porttitor adipiscing, urna orci egestas libero, ut accumsan orci lacus laoreet diam. Morbi sed euismod diam.
+</textarea>
+</form>
+Active Element Id: <span id="output-element"></span><br/>
+Selected Text: <span id="output-text"></span>
+
+</body>
+</html>
+
+ +

JSFiddle で確認

+ +

注記

+ +

Originally introduced as a proprietary DOM extension in Internet Explorer 4, this property also is supported in Opera and Safari (as of version 4).

+ +

仕様

+ + + +

ブラウザ実装状況

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
基本サポート23.049.64.0
+
+ +
+ + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
基本サポート{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

 

diff --git a/files/ja/web/api/documentorshadowroot/activeelement/index.html b/files/ja/web/api/documentorshadowroot/activeelement/index.html deleted file mode 100644 index 5fe59cbae6..0000000000 --- a/files/ja/web/api/documentorshadowroot/activeelement/index.html +++ /dev/null @@ -1,145 +0,0 @@ ---- -title: document.activeElement -slug: Web/API/DocumentOrShadowRoot/activeElement -tags: - - DOM - - Focus - - Gecko - - HTML5 - - NeedsTranslation - - 要更新 -translation_of: Web/API/DocumentOrShadowRoot/activeElement -translation_of_original: Web/API/Document/activeElement -original_slug: Web/API/Document/activeElement ---- -
{{ApiRef}}
- -

概要

- -

Returns the currently focused element, that is, the element that will get keystroke events if the user types any. This attribute is read only.

- -

Often this will return an {{HTMLElement("input")}} or {{HTMLElement("textarea")}} object, if it has the text selection at the time.  If so, you can get more detail by using the element's selectionStart and selectionEnd properties.  Other times the focused element might be a {{HTMLElement("select")}} element (menu) or an {{HTMLElement("input")}} element, of type button, checkbox or radio.

- -
注記: On Mac, elements that aren't text input elements tend not to get focus assigned to them.
- -

Typically a user can press the tab key to move the focus around the page among focusable elements, and use the space bar to activate it (press a button, choose a radio).

- -

Do not confuse focus with a selection over the document, consisting mostly of static text nodes.  See {{domxref("window.getSelection()")}} for that.

- -

When there is no selection, the active element is the page's {{HTMLElement("body")}}.

- -

{{Note("This attribute is part of the in-development HTML 5 specification.")}}

- -

構文

- -
var curElement = document.activeElement;
-
- -

- -
<!DOCTYPE HTML>
-<html>
-<head>
-    <script type="text/javascript" charset="utf-8">
-    function init() {
-
-        function onMouseUp(e) {
-            console.log(e);
-            var outputElement = document.getElementById('output-element');
-            var outputText = document.getElementById('output-text');
-            var selectedTextArea = document.activeElement;
-            var selection = selectedTextArea.value.substring(
-            selectedTextArea.selectionStart, selectedTextArea.selectionEnd);
-            outputElement.innerHTML = selectedTextArea.id;
-            outputText.innerHTML = selection;
-        }
-
-        document.getElementById("ta-example-one").addEventListener("mouseup", onMouseUp, false);
-        document.getElementById("ta-example-two").addEventListener("mouseup", onMouseUp, false);
-    }
-    </script>
-</head>
-<body onload="init()">
-<div>
-    Select some text from one of the Textareas below:
-</div>
-<form id="frm-example" action="#" accept-charset="utf-8">
-<textarea name="ta-example-one" id="ta-example-one" rows="8" cols="40">
-This is Textarea Example One:
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt, lorem a porttitor molestie, odio nibh iaculis libero, et accumsan nunc orci eu dui.
-</textarea>
-<textarea name="ta-example-two" id="ta-example-two" rows="8" cols="40">
-This is Textarea Example Two:
-Fusce ullamcorper, nisl ac porttitor adipiscing, urna orci egestas libero, ut accumsan orci lacus laoreet diam. Morbi sed euismod diam.
-</textarea>
-</form>
-Active Element Id: <span id="output-element"></span><br/>
-Selected Text: <span id="output-text"></span>
-
-</body>
-</html>
-
- -

JSFiddle で確認

- -

注記

- -

Originally introduced as a proprietary DOM extension in Internet Explorer 4, this property also is supported in Opera and Safari (as of version 4).

- -

仕様

- - - -

ブラウザ実装状況

- -
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
基本サポート23.049.64.0
-
- -
- - - - - - - - - - - - - - - - - - - -
機能AndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
基本サポート{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

 

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

+ +

関連情報

+ + 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")}}

- -

関連情報

- - diff --git a/files/ja/web/api/nondocumenttypechildnode/index.html b/files/ja/web/api/nondocumenttypechildnode/index.html deleted file mode 100644 index 2115525343..0000000000 --- a/files/ja/web/api/nondocumenttypechildnode/index.html +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: NonDocumentTypeChildNode -slug: Web/API/NonDocumentTypeChildNode -tags: - - API - - DOM - - Interface - - NonDocumentTypeChildNode - - Reference -translation_of: Web/API/NonDocumentTypeChildNode ---- -
{{APIRef("DOM")}}
- -

NonDocumentTypeChildNode インターフェイスは親を持つ {{domxref("Node")}} オブジェクトに固有な、{{domxref("DocumentType")}} に適していないメソッドを含みます。

- -

NonDocumentTypeChildNode は純粋なインターフェースで、この型のオブジェクトを作ることはできません。 {{domxref("Element")}}、{{domxref("CharacterData")}} オブジェクトで実装されています。

- -

プロパティ

- -

継承されたプロパティはありません。

- -
-
{{domxref("NonDocumentTypeChildNode.previousElementSibling")}} {{readonlyInline}}
-
このノードの親ノードの子リスト内にある、このノードの直前にある {{domxref("Element")}} を返します。リスト内でこのノードの前に {{domxref("Element")}} がない場合は null を返します。
-
{{domxref("NonDocumentTypeChildNode.nextElementSibling")}} {{readonlyInline}}
-
このノードの親ノードの子リスト内にある、このノードの直後にある {{domxref("Element")}} を返します。リスト内でこのノードの後に {{domxref("Element")}} がない場合は null を返します。
-
- -

メソッド

- -

継承、および実装されたメソッドはありません。

- -

仕様

- - - - - - - - - - - - - - - - - - - -
仕様書策定状況コメント
{{SpecName('DOM WHATWG', '#interface-nondocumenttypechildnode', 'NonDocumentTypeChildNode')}}{{Spec2('DOM WHATWG')}}ElementTraversal インタフェースを{{domxref("ParentNode")}}、{{domxref("ChildNode")}}、NonDocumentTypeChildNode に分割しました。後者では previousElementSiblingnextElementSibling が定義されるようになりました。
- {{domxref("CharacterData")}} と {{domxref("Element")}} は、新しいインタフェースを実装しました。
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}{{Spec2('Element Traversal')}}ElementTraversal 基本インターフェースにプロパティの初期定義を追加し、{{domxref("Element")}} で使用できるようにしました。.
- -

ブラウザー実装状況

- - - -

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

- -

関連情報

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