From 5e990a17012ff5ed90ae1559a11bbe4bc74c887a Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 8 Jun 2021 00:58:25 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 3 + files/ja/_wikihistory.json | 24 +++---- .../ja/orphaned/web/api/abstractworker/index.html | 82 ++++++++++++++++++++++ .../web/api/abstractworker/onerror/index.html | 60 ++++++++++++++++ .../web/api/element/currentstyle/index.html | 51 ++++++++++++++ files/ja/web/api/abstractworker/index.html | 81 --------------------- files/ja/web/api/abstractworker/onerror/index.html | 59 ---------------- files/ja/web/api/element/currentstyle/index.html | 50 ------------- 8 files changed, 208 insertions(+), 202 deletions(-) create mode 100644 files/ja/orphaned/web/api/abstractworker/index.html create mode 100644 files/ja/orphaned/web/api/abstractworker/onerror/index.html create mode 100644 files/ja/orphaned/web/api/element/currentstyle/index.html delete mode 100644 files/ja/web/api/abstractworker/index.html delete mode 100644 files/ja/web/api/abstractworker/onerror/index.html delete mode 100644 files/ja/web/api/element/currentstyle/index.html (limited to 'files/ja') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 78f8457a1d..ed33bc73ac 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3678,6 +3678,8 @@ /ja/docs/Web-e/Guide/CSS/Understanding_z_index/Stacking_context_example_3 /ja/docs/Web/CSS/CSS_Positioning/Understanding_z_index/Stacking_context_example_3 /ja/docs/Web-e/Guide/CSS/Understanding_z_index/Stacking_without_z-index /ja/docs/Web/CSS/CSS_Positioning/Understanding_z_index/Stacking_without_z-index /ja/docs/Web-e/Guide/CSS/Understanding_z_index/The_stacking_context /ja/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context +/ja/docs/Web/API/AbstractWorker /ja/docs/orphaned/Web/API/AbstractWorker +/ja/docs/Web/API/AbstractWorker/onerror /ja/docs/orphaned/Web/API/AbstractWorker/onerror /ja/docs/Web/API/Apps /ja/docs/Web/API/DOMApplicationsRegistry /ja/docs/Web/API/Apps.checkInstalled /ja/docs/Web/API/DOMApplicationsRegistry/checkInstalled /ja/docs/Web/API/Apps.getInstalled /ja/docs/Web/API/DOMApplicationsRegistry/getInstalled @@ -3762,6 +3764,7 @@ /ja/docs/Web/API/Element.querySelectorAll /ja/docs/Web/API/Element/querySelectorAll /ja/docs/Web/API/Element/Activate_event /ja/docs/Web/API/Element/DOMActivate_event /ja/docs/Web/API/Element/accessKey /ja/docs/Web/API/HTMLElement/accessKey +/ja/docs/Web/API/Element/currentStyle /ja/docs/orphaned/Web/API/Element/currentStyle /ja/docs/Web/API/Element/name /ja/docs/conflicting/Web/API /ja/docs/Web/API/Event/button /ja/docs/conflicting/Web/API/MouseEvent/button /ja/docs/Web/API/Event/createEvent /ja/docs/conflicting/Web/API/Document/createEvent diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index de85c35f61..bf33905847 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -9990,18 +9990,6 @@ "silverskyvicto" ] }, - "Web/API/AbstractWorker": { - "modified": "2020-10-15T22:02:41.214Z", - "contributors": [ - "chikoski" - ] - }, - "Web/API/AbstractWorker/onerror": { - "modified": "2020-10-15T22:02:48.424Z", - "contributors": [ - "chikoski" - ] - }, "Web/API/Ambient_Light_Events": { "modified": "2020-10-15T21:25:12.532Z", "contributors": [ @@ -52230,6 +52218,18 @@ "shinnn" ] }, + "orphaned/Web/API/AbstractWorker": { + "modified": "2020-10-15T22:02:41.214Z", + "contributors": [ + "chikoski" + ] + }, + "orphaned/Web/API/AbstractWorker/onerror": { + "modified": "2020-10-15T22:02:48.424Z", + "contributors": [ + "chikoski" + ] + }, "orphaned/Web/API/AudioContext/mozAudioChannelType": { "modified": "2019-03-23T22:51:59.818Z", "contributors": [ diff --git a/files/ja/orphaned/web/api/abstractworker/index.html b/files/ja/orphaned/web/api/abstractworker/index.html new file mode 100644 index 0000000000..07ac4a693c --- /dev/null +++ b/files/ja/orphaned/web/api/abstractworker/index.html @@ -0,0 +1,82 @@ +--- +title: AbstractWorker +slug: orphaned/Web/API/AbstractWorker +translation_of: Web/API/AbstractWorker +original_slug: Web/API/AbstractWorker +--- +

{{ APIRef("Web Workers API") }}

+ +

Web Workers APIAbstractWorker インタフェースは {{domxref("Worker")}} や {{domxref("SharedWorker")}} に共通の属性やメソッドを定義しています。

+ +

属性

+ +

AbstractWorker インタフェースには、他から継承している属性はありません。

+ +

イベントハンドラ

+ +
+
{{domxref("AbstractWorker.onerror")}}
+
{{domxref("ErrorEvent")}} イベントの発生時に呼ばれる {{ domxref("EventListener") }} です。
+
+ +

メソッド

+ +

AbstractWorker インタフェースには他から継承したメソッドはありません。

+ +

利用例

+ +

注意: AbstractWorker を直接呼ぶことはできません。必要な場合は、これを継承している {{domxref("Worker")}} か {{domxref("SharedWorker")}} を利用します。以下の例では、{{domxref("Worker.Worker", "Worker()")}} コンストラクタを利用して、{{domxref("Worker")}} オブジェクトを作成し、利用しています。

+ +
var myWorker = new Worker('worker.js');
+
+first.onchange = function() {
+  myWorker.postMessage([first.value,second.value]);
+  console.log('Message posted to worker');
+}
+ +

このサンプルコードは、以下のページで全コードを参照できます:

+ + + +

仕様

+ + + + + + + + + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName("HTML WHATWG", "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2("HTML WHATWG")}}No change from {{SpecName("Web Workers")}}.
{{SpecName("Web Workers", "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2("Web Workers")}}Initial definition.
+ +

ブラウザ互換性

+ +
+ + +

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

+
+ +

関連項目

+ + + +

 

diff --git a/files/ja/orphaned/web/api/abstractworker/onerror/index.html b/files/ja/orphaned/web/api/abstractworker/onerror/index.html new file mode 100644 index 0000000000..94e0907b15 --- /dev/null +++ b/files/ja/orphaned/web/api/abstractworker/onerror/index.html @@ -0,0 +1,60 @@ +--- +title: AbstractWorker.onerror +slug: orphaned/Web/API/AbstractWorker/onerror +translation_of: Web/API/AbstractWorker/onerror +original_slug: Web/API/AbstractWorker/onerror +--- +

{{ APIRef("Web Workers API") }}

+ +

概要

+ +

{{domxref("AbstractWorker")}} の AbstractWorker.onerror 属性は {{event("Event_handlers", "event handler")}} の一種で、 {{domxref("Worker")}}  から {{event("error")}} イベントが送出された時に呼ばれます。

+ +

記法

+ +
myWorker.onerror = function() { ... };
+ +

利用例

+ +

以下の例では Worker() コンストラクタを利用して作成した Worker オブジェクトに、onerror ハンドラを設定しています。

+ +
var myWorker = new Worker('worker.js');
+
+myWorker.onerror = function() {
+  console.log('There is an error with your worker!');
+}
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', "#handler-abstractworker-onerror", "AbstractWorker.onerror")}}{{Spec2('HTML WHATWG')}} 
+ +

ブラウザ互換性

+ +
+ + +

{{Compat("api.AbstractWorker.onerror")}}

+
+ +

クロスオリジンに関するエラー

+ +

過去のブラウザには、ワーカ用のスクリプトを異なるオリジンから読み込もうとすると、SecurityError を送出するものがあります。最近のブラウザは{{event("error")}} イベントを送出します。これは仕様の変更によるものです。この件の詳細と対処方法については、こちらの文書を参照してください: Loading cross-origin worker now fires error event instead of throwing; worker in sandboxed iframe no longer allowed.

+ +

関連情報

+ + diff --git a/files/ja/orphaned/web/api/element/currentstyle/index.html b/files/ja/orphaned/web/api/element/currentstyle/index.html new file mode 100644 index 0000000000..5f1cfa645e --- /dev/null +++ b/files/ja/orphaned/web/api/element/currentstyle/index.html @@ -0,0 +1,51 @@ +--- +title: Element.currentStyle +slug: orphaned/Web/API/Element/currentStyle +tags: + - API + - NeedsExample + - Non-standard + - Property +translation_of: Web/API/Element/currentStyle +original_slug: Web/API/Element/currentStyle +--- +

{{Non-standard_header}}

+ +

Element.currentStyle は独自プロパティで、標準化されている {{DOMxRef("window.getComputedStyle()")}} メソッドに似ているものです。古いバージョンの Microsoft Internet Explorer で使用できます。しかし、 window.getComputedStyle() がピクセル数で値を返すのに対し、これは CSS で設定された単位で返します。

+ +

ポリフィル

+ +
+

このポリフィルは値をピクセル数で返しますが、値を読むたびに {{domxref("window.getComputedStyle()")}} を呼び出さなければならないため、かなり遅くなると思われます。

+
+ +
/* すべての著作権をパブリックドメインに寄贈します。
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+if (!("currentStyle" in Element.prototype)) {
+  Object.defineProperty(Element.prototype, "currentStyle", {
+    get: function() {
+      return window.getComputedStyle(this);
+    }
+  });
+}
+
+ +

仕様書

+ +

どの仕様書にも含まれていません。

+ +

Microsoft は MSDN で説明しています

+ +

ブラウザーの互換性

+ +

{{Compat("api.Element.currentStyle")}}

+ +

関連情報

+ + + +
{{APIRef("DOM")}}
diff --git a/files/ja/web/api/abstractworker/index.html b/files/ja/web/api/abstractworker/index.html deleted file mode 100644 index 89837e30ff..0000000000 --- a/files/ja/web/api/abstractworker/index.html +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: AbstractWorker -slug: Web/API/AbstractWorker -translation_of: Web/API/AbstractWorker ---- -

{{ APIRef("Web Workers API") }}

- -

Web Workers APIAbstractWorker インタフェースは {{domxref("Worker")}} や {{domxref("SharedWorker")}} に共通の属性やメソッドを定義しています。

- -

属性

- -

AbstractWorker インタフェースには、他から継承している属性はありません。

- -

イベントハンドラ

- -
-
{{domxref("AbstractWorker.onerror")}}
-
{{domxref("ErrorEvent")}} イベントの発生時に呼ばれる {{ domxref("EventListener") }} です。
-
- -

メソッド

- -

AbstractWorker インタフェースには他から継承したメソッドはありません。

- -

利用例

- -

注意: AbstractWorker を直接呼ぶことはできません。必要な場合は、これを継承している {{domxref("Worker")}} か {{domxref("SharedWorker")}} を利用します。以下の例では、{{domxref("Worker.Worker", "Worker()")}} コンストラクタを利用して、{{domxref("Worker")}} オブジェクトを作成し、利用しています。

- -
var myWorker = new Worker('worker.js');
-
-first.onchange = function() {
-  myWorker.postMessage([first.value,second.value]);
-  console.log('Message posted to worker');
-}
- -

このサンプルコードは、以下のページで全コードを参照できます:

- - - -

仕様

- - - - - - - - - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName("HTML WHATWG", "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2("HTML WHATWG")}}No change from {{SpecName("Web Workers")}}.
{{SpecName("Web Workers", "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2("Web Workers")}}Initial definition.
- -

ブラウザ互換性

- -
- - -

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

-
- -

関連項目

- - - -

 

diff --git a/files/ja/web/api/abstractworker/onerror/index.html b/files/ja/web/api/abstractworker/onerror/index.html deleted file mode 100644 index aa05ed3182..0000000000 --- a/files/ja/web/api/abstractworker/onerror/index.html +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: AbstractWorker.onerror -slug: Web/API/AbstractWorker/onerror -translation_of: Web/API/AbstractWorker/onerror ---- -

{{ APIRef("Web Workers API") }}

- -

概要

- -

{{domxref("AbstractWorker")}} の AbstractWorker.onerror 属性は {{event("Event_handlers", "event handler")}} の一種で、 {{domxref("Worker")}}  から {{event("error")}} イベントが送出された時に呼ばれます。

- -

記法

- -
myWorker.onerror = function() { ... };
- -

利用例

- -

以下の例では Worker() コンストラクタを利用して作成した Worker オブジェクトに、onerror ハンドラを設定しています。

- -
var myWorker = new Worker('worker.js');
-
-myWorker.onerror = function() {
-  console.log('There is an error with your worker!');
-}
- -

仕様

- - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('HTML WHATWG', "#handler-abstractworker-onerror", "AbstractWorker.onerror")}}{{Spec2('HTML WHATWG')}} 
- -

ブラウザ互換性

- -
- - -

{{Compat("api.AbstractWorker.onerror")}}

-
- -

クロスオリジンに関するエラー

- -

過去のブラウザには、ワーカ用のスクリプトを異なるオリジンから読み込もうとすると、SecurityError を送出するものがあります。最近のブラウザは{{event("error")}} イベントを送出します。これは仕様の変更によるものです。この件の詳細と対処方法については、こちらの文書を参照してください: Loading cross-origin worker now fires error event instead of throwing; worker in sandboxed iframe no longer allowed.

- -

関連情報

- - diff --git a/files/ja/web/api/element/currentstyle/index.html b/files/ja/web/api/element/currentstyle/index.html deleted file mode 100644 index 24548064d8..0000000000 --- a/files/ja/web/api/element/currentstyle/index.html +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Element.currentStyle -slug: Web/API/Element/currentStyle -tags: - - API - - NeedsExample - - Non-standard - - Property -translation_of: Web/API/Element/currentStyle ---- -

{{Non-standard_header}}

- -

Element.currentStyle は独自プロパティで、標準化されている {{DOMxRef("window.getComputedStyle()")}} メソッドに似ているものです。古いバージョンの Microsoft Internet Explorer で使用できます。しかし、 window.getComputedStyle() がピクセル数で値を返すのに対し、これは CSS で設定された単位で返します。

- -

ポリフィル

- -
-

このポリフィルは値をピクセル数で返しますが、値を読むたびに {{domxref("window.getComputedStyle()")}} を呼び出さなければならないため、かなり遅くなると思われます。

-
- -
/* すべての著作権をパブリックドメインに寄贈します。
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-if (!("currentStyle" in Element.prototype)) {
-  Object.defineProperty(Element.prototype, "currentStyle", {
-    get: function() {
-      return window.getComputedStyle(this);
-    }
-  });
-}
-
- -

仕様書

- -

どの仕様書にも含まれていません。

- -

Microsoft は MSDN で説明しています

- -

ブラウザーの互換性

- -

{{Compat("api.Element.currentStyle")}}

- -

関連情報

- - - -
{{APIRef("DOM")}}
-- cgit v1.2.3-54-g00ecf