From d43a795d4209d1632dd44e0803c61674149686bb Mon Sep 17 00:00:00 2001 From: MDN Date: Fri, 25 Jun 2021 00:38:26 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 7 +- files/ja/_wikihistory.json | 20 +++--- .../navigator/registercontenthandler/index.html | 75 ++++++++++++++++++++++ .../navigator/registercontenthandler/index.html | 74 --------------------- files/pl/_redirects.txt | 5 +- files/pl/_wikihistory.json | 22 +++---- .../navigator/registercontenthandler/index.html | 50 +++++++++++++++ .../navigator/registercontenthandler/index.html | 49 -------------- files/zh-cn/_redirects.txt | 5 +- files/zh-cn/_wikihistory.json | 16 ++--- .../navigator/registercontenthandler/index.html | 48 ++++++++++++++ .../navigator/registercontenthandler/index.html | 47 -------------- 12 files changed, 212 insertions(+), 206 deletions(-) create mode 100644 files/ja/orphaned/web/api/navigator/registercontenthandler/index.html delete mode 100644 files/ja/web/api/navigator/registercontenthandler/index.html create mode 100644 files/pl/orphaned/web/api/navigator/registercontenthandler/index.html delete mode 100644 files/pl/web/api/navigator/registercontenthandler/index.html create mode 100644 files/zh-cn/orphaned/web/api/navigator/registercontenthandler/index.html delete mode 100644 files/zh-cn/web/api/navigator/registercontenthandler/index.html (limited to 'files') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 26087d87d6..d12d9c381d 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -1689,7 +1689,7 @@ /ja/docs/DOM/window.navigator.plugins /ja/docs/Web/API/NavigatorPlugins/plugins /ja/docs/DOM/window.navigator.product /ja/docs/Web/API/NavigatorID/product /ja/docs/DOM/window.navigator.productSub /ja/docs/Web/API/Navigator/productSub -/ja/docs/DOM/window.navigator.registerContentHandler /ja/docs/Web/API/Navigator/registerContentHandler +/ja/docs/DOM/window.navigator.registerContentHandler /ja/docs/orphaned/Web/API/Navigator/registerContentHandler /ja/docs/DOM/window.navigator.registerProtocolHandler /ja/docs/Web/API/Navigator/registerProtocolHandler /ja/docs/DOM/window.navigator.userAgent /ja/docs/Web/API/NavigatorID/userAgent /ja/docs/DOM/window.navigator.vendor /ja/docs/Web/API/Navigator/vendor @@ -1915,7 +1915,7 @@ /ja/docs/DOM:window.navigator.plugins /ja/docs/Web/API/NavigatorPlugins/plugins /ja/docs/DOM:window.navigator.product /ja/docs/Web/API/NavigatorID/product /ja/docs/DOM:window.navigator.productSub /ja/docs/Web/API/Navigator/productSub -/ja/docs/DOM:window.navigator.registerContentHandler /ja/docs/Web/API/Navigator/registerContentHandler +/ja/docs/DOM:window.navigator.registerContentHandler /ja/docs/orphaned/Web/API/Navigator/registerContentHandler /ja/docs/DOM:window.navigator.registerProtocolHandler /ja/docs/Web/API/Navigator/registerProtocolHandler /ja/docs/DOM:window.navigator.userAgent /ja/docs/Web/API/NavigatorID/userAgent /ja/docs/DOM:window.navigator.vendor /ja/docs/Web/API/Navigator/vendor @@ -3881,6 +3881,7 @@ /ja/docs/Web/API/Navigator.getUserMedia /ja/docs/Web/API/Navigator/getUserMedia /ja/docs/Web/API/Navigator.mozFMRadio /ja/docs/Web/API/Navigator/mozFMRadio /ja/docs/Web/API/Navigator/javaEnabled /ja/docs/Web/API/NavigatorPlugins/javaEnabled +/ja/docs/Web/API/Navigator/registerContentHandler /ja/docs/orphaned/Web/API/Navigator/registerContentHandler /ja/docs/Web/API/Navigator/userAgent /ja/docs/Web/API/NavigatorID/userAgent /ja/docs/Web/API/NavigatorLanguage.languages /ja/docs/Web/API/NavigatorLanguage/languages /ja/docs/Web/API/Node.appendChild /ja/docs/Web/API/Node/appendChild @@ -4198,7 +4199,7 @@ /ja/docs/Web/API/window.navigator.plugins /ja/docs/Web/API/NavigatorPlugins/plugins /ja/docs/Web/API/window.navigator.product /ja/docs/Web/API/NavigatorID/product /ja/docs/Web/API/window.navigator.productSub /ja/docs/Web/API/Navigator/productSub -/ja/docs/Web/API/window.navigator.registerContentHandler /ja/docs/Web/API/Navigator/registerContentHandler +/ja/docs/Web/API/window.navigator.registerContentHandler /ja/docs/orphaned/Web/API/Navigator/registerContentHandler /ja/docs/Web/API/window.navigator.userAgent /ja/docs/Web/API/NavigatorID/userAgent /ja/docs/Web/API/window.navigator.vendor /ja/docs/Web/API/Navigator/vendor /ja/docs/Web/API/window.navigator.vendorSub /ja/docs/Web/API/Navigator/vendorSub diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 85fd91846b..23abe2d6c6 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -19062,16 +19062,6 @@ "Potappo" ] }, - "Web/API/Navigator/registerContentHandler": { - "modified": "2020-10-15T21:15:53.115Z", - "contributors": [ - "mfuji09", - "fscholz", - "jsx", - "ethertank", - "Potappo" - ] - }, "Web/API/Navigator/registerProtocolHandler": { "modified": "2020-10-15T21:15:46.655Z", "contributors": [ @@ -52005,6 +51995,16 @@ "ethertank" ] }, + "orphaned/Web/API/Navigator/registerContentHandler": { + "modified": "2020-10-15T21:15:53.115Z", + "contributors": [ + "mfuji09", + "fscholz", + "jsx", + "ethertank", + "Potappo" + ] + }, "orphaned/Web/API/Node/getUserData": { "modified": "2020-10-15T21:14:35.305Z", "contributors": [ diff --git a/files/ja/orphaned/web/api/navigator/registercontenthandler/index.html b/files/ja/orphaned/web/api/navigator/registercontenthandler/index.html new file mode 100644 index 0000000000..d1e788d8cc --- /dev/null +++ b/files/ja/orphaned/web/api/navigator/registercontenthandler/index.html @@ -0,0 +1,75 @@ +--- +title: Navigator.registerContentHandler() +slug: orphaned/Web/API/Navigator/registerContentHandler +tags: + - API + - MIME + - Method + - Navigator + - registerContentHandler + - ウェブベースプロトコルハンドラー + - 廃止 +translation_of: Web/API/Navigator/registerContentHandler +original_slug: Web/API/Navigator/registerContentHandler +--- +
{{ ApiRef("HTML DOM") }}{{ Obsolete_header }}
+ +

ウェブサイトが自分自身を、特定の MIME タイプのコンテンツのハンドラーとして可能な限り登録します。

+ +

{{Note("ウェブサイトは自分自身のコンテンツハンドラーのみを登録できます、。セキュリティ上の理由で、拡張機能やウェブサイトが他のサイトを対象とするコンテンツハンドラーを登録することはできません。")}}

+ +

構文

+ +
navigator.registerContentHandler(mimeType, uri, title);
+ + + +

+ +
navigator.registerContentHandler(
+    "application/vnd.mozilla.maybe.feed",
+    "http://www.example.tld/?foo=%s",
+    "My Feed Reader"
+);
+ +

メモ

+ +

Firefox 2 以降では、 MIME タイプのうち application/vnd.mozilla.maybe.feed, application/atom+xml, application/rss+xml のみに対応しています。これらの値は全て、同じ効果を持っています。また、関連付けは、全てのバージョンの Atom と RSS におけるフィードに対して適用されます。

+ +

Firefox はこの機能が実装された唯一のブラウザーであり、標準には一致していません。この機能は HTML 標準から削除されており、使用しないでください。

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML5.2', 'webappapis.html#dom-navigator-registercontenthandler', 'registerContentHandler()')}}{{Spec2('HTML5.2')}}この機能は HTML 5.2 に存在するが、 WHATWG HTML Living Standard からは削除済み。
+ +

ブラウザーの対応

+ +

{{Compat("api.Navigator.registerContentHandler")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/navigator/registercontenthandler/index.html b/files/ja/web/api/navigator/registercontenthandler/index.html deleted file mode 100644 index 8a220eff1a..0000000000 --- a/files/ja/web/api/navigator/registercontenthandler/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: Navigator.registerContentHandler() -slug: Web/API/Navigator/registerContentHandler -tags: - - API - - MIME - - Method - - Navigator - - registerContentHandler - - ウェブベースプロトコルハンドラー - - 廃止 -translation_of: Web/API/Navigator/registerContentHandler ---- -
{{ ApiRef("HTML DOM") }}{{ Obsolete_header }}
- -

ウェブサイトが自分自身を、特定の MIME タイプのコンテンツのハンドラーとして可能な限り登録します。

- -

{{Note("ウェブサイトは自分自身のコンテンツハンドラーのみを登録できます、。セキュリティ上の理由で、拡張機能やウェブサイトが他のサイトを対象とするコンテンツハンドラーを登録することはできません。")}}

- -

構文

- -
navigator.registerContentHandler(mimeType, uri, title);
- - - -

- -
navigator.registerContentHandler(
-    "application/vnd.mozilla.maybe.feed",
-    "http://www.example.tld/?foo=%s",
-    "My Feed Reader"
-);
- -

メモ

- -

Firefox 2 以降では、 MIME タイプのうち application/vnd.mozilla.maybe.feed, application/atom+xml, application/rss+xml のみに対応しています。これらの値は全て、同じ効果を持っています。また、関連付けは、全てのバージョンの Atom と RSS におけるフィードに対して適用されます。

- -

Firefox はこの機能が実装された唯一のブラウザーであり、標準には一致していません。この機能は HTML 標準から削除されており、使用しないでください。

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('HTML5.2', 'webappapis.html#dom-navigator-registercontenthandler', 'registerContentHandler()')}}{{Spec2('HTML5.2')}}この機能は HTML 5.2 に存在するが、 WHATWG HTML Living Standard からは削除済み。
- -

ブラウザーの対応

- -

{{Compat("api.Navigator.registerContentHandler")}}

- -

関連情報

- - diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index 410af36650..9ff5876b6e 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -532,7 +532,7 @@ /pl/docs/DOM/window.navigator.plugins /pl/docs/Web/API/NavigatorPlugins/plugins /pl/docs/DOM/window.navigator.product /pl/docs/Web/API/NavigatorID/product /pl/docs/DOM/window.navigator.productSub /pl/docs/Web/API/Navigator/productSub -/pl/docs/DOM/window.navigator.registerContentHandler /pl/docs/Web/API/Navigator/registerContentHandler +/pl/docs/DOM/window.navigator.registerContentHandler /pl/docs/orphaned/Web/API/Navigator/registerContentHandler /pl/docs/DOM/window.navigator.registerProtocolHandler /pl/docs/Web/API/Navigator/registerProtocolHandler /pl/docs/DOM/window.onload /pl/docs/Web/API/GlobalEventHandlers/onload /pl/docs/DOM/window.open /pl/docs/Web/API/Window/open @@ -778,7 +778,7 @@ /pl/docs/DOM:window.navigator.plugins /pl/docs/Web/API/NavigatorPlugins/plugins /pl/docs/DOM:window.navigator.product /pl/docs/Web/API/NavigatorID/product /pl/docs/DOM:window.navigator.productSub /pl/docs/Web/API/Navigator/productSub -/pl/docs/DOM:window.navigator.registerContentHandler /pl/docs/Web/API/Navigator/registerContentHandler +/pl/docs/DOM:window.navigator.registerContentHandler /pl/docs/orphaned/Web/API/Navigator/registerContentHandler /pl/docs/DOM:window.navigator.registerProtocolHandler /pl/docs/Web/API/Navigator/registerProtocolHandler /pl/docs/DOM:window.onload /pl/docs/Web/API/GlobalEventHandlers/onload /pl/docs/DOM:window.open /pl/docs/Web/API/Window/open @@ -2006,6 +2006,7 @@ /pl/docs/Web/API/Navigator/platform /pl/docs/Web/API/NavigatorID/platform /pl/docs/Web/API/Navigator/plugins /pl/docs/Web/API/NavigatorPlugins/plugins /pl/docs/Web/API/Navigator/product /pl/docs/Web/API/NavigatorID/product +/pl/docs/Web/API/Navigator/registerContentHandler /pl/docs/orphaned/Web/API/Navigator/registerContentHandler /pl/docs/Web/API/NavigatorOnLine/Zdarzenia_online_i_offline /pl/docs/Web/API/NavigatorOnLine/Online_and_offline_events /pl/docs/Web/API/Node/localName /pl/docs/Web/API/Element/localName /pl/docs/Web/API/Node/namespaceURI /pl/docs/Web/API/Element/namespaceURI diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index 727016ba32..a1713f3e2e 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -3212,17 +3212,6 @@ "Diablownik" ] }, - "Web/API/Navigator/registerContentHandler": { - "modified": "2019-03-23T23:51:33.038Z", - "contributors": [ - "teoli", - "khalid32", - "Diablownik", - "Mgjbot", - "Marcoos", - "Ptak82" - ] - }, "Web/API/Navigator/registerProtocolHandler": { "modified": "2019-03-23T23:52:37.570Z", "contributors": [ @@ -11152,6 +11141,17 @@ "Jan Dudek" ] }, + "orphaned/Web/API/Navigator/registerContentHandler": { + "modified": "2019-03-23T23:51:33.038Z", + "contributors": [ + "teoli", + "khalid32", + "Diablownik", + "Mgjbot", + "Marcoos", + "Ptak82" + ] + }, "orphaned/Web/API/ParentNode": { "modified": "2020-10-15T22:19:13.921Z" }, diff --git a/files/pl/orphaned/web/api/navigator/registercontenthandler/index.html b/files/pl/orphaned/web/api/navigator/registercontenthandler/index.html new file mode 100644 index 0000000000..9f138e2111 --- /dev/null +++ b/files/pl/orphaned/web/api/navigator/registercontenthandler/index.html @@ -0,0 +1,50 @@ +--- +title: Navigator.registerContentHandler +slug: orphaned/Web/API/Navigator/registerContentHandler +tags: + - DOM + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/API/Navigator/registerContentHandler +original_slug: Web/API/Navigator/registerContentHandler +--- +

{{ ApiRef() }}

+ +

Podsumowanie

+ +

Pozwala stronom na zarejestrowanie się jako możliwe serwisy obsługujące zawartości konkretnego typu MIME.

+ +

{{ Note("Strony internetowe mogą zarejestrować tylko siebie jako serwisy obsługujące zawartość. Ze względów bezpieczeństwa nie jest możliwe, aby rozszerzenie lub strona internetowa zarejestrowały inną stronę do obsługi zawartości.") }}

+ +

Składnia

+ +
window.navigator.registerContentHandler(mimeType,
+uri,
+title);
+
+ + + +

Przykład

+ +
navigator.registerContentHandler("application/vnd.mozilla.maybe.feed",
+                                 "http://www.przyklad.tld/?foo=%s",
+                                 "Mój Czytnik Kanałów");
+
+ +

Uwagi

+ +

W Firefoksie 2 obsługiwane są tylko typy MIME application/vnd.mozilla.maybe.feed, application/atom+xml oraz application/rss+xml. Wszystkie wartości mają ten sam efekt, a zarejestrowane strony obsługujące otrzymają kanały we wszystkich wersjach Atom i RSS.

+ +

Specyfikacja

+ +

Określona przez szkic roboczy Web Applications 1.0 organizacji WHATWG.

+ +
 
+ +

{{ languages( { "en": "en/DOM/window.navigator.registerContentHandler", "ja": "ja/DOM/window.navigator.registerContentHandler" } ) }}

diff --git a/files/pl/web/api/navigator/registercontenthandler/index.html b/files/pl/web/api/navigator/registercontenthandler/index.html deleted file mode 100644 index 58f6f5dd39..0000000000 --- a/files/pl/web/api/navigator/registercontenthandler/index.html +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: Navigator.registerContentHandler -slug: Web/API/Navigator/registerContentHandler -tags: - - DOM - - Dokumentacja_Gecko_DOM - - Gecko - - Wszystkie_kategorie -translation_of: Web/API/Navigator/registerContentHandler ---- -

{{ ApiRef() }}

- -

Podsumowanie

- -

Pozwala stronom na zarejestrowanie się jako możliwe serwisy obsługujące zawartości konkretnego typu MIME.

- -

{{ Note("Strony internetowe mogą zarejestrować tylko siebie jako serwisy obsługujące zawartość. Ze względów bezpieczeństwa nie jest możliwe, aby rozszerzenie lub strona internetowa zarejestrowały inną stronę do obsługi zawartości.") }}

- -

Składnia

- -
window.navigator.registerContentHandler(mimeType,
-uri,
-title);
-
- - - -

Przykład

- -
navigator.registerContentHandler("application/vnd.mozilla.maybe.feed",
-                                 "http://www.przyklad.tld/?foo=%s",
-                                 "Mój Czytnik Kanałów");
-
- -

Uwagi

- -

W Firefoksie 2 obsługiwane są tylko typy MIME application/vnd.mozilla.maybe.feed, application/atom+xml oraz application/rss+xml. Wszystkie wartości mają ten sam efekt, a zarejestrowane strony obsługujące otrzymają kanały we wszystkich wersjach Atom i RSS.

- -

Specyfikacja

- -

Określona przez szkic roboczy Web Applications 1.0 organizacji WHATWG.

- -
 
- -

{{ languages( { "en": "en/DOM/window.navigator.registerContentHandler", "ja": "ja/DOM/window.navigator.registerContentHandler" } ) }}

diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index a6d351e192..cdfd4b6b33 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -531,7 +531,7 @@ /zh-CN/docs/DOM/window.navigator.oscpu /zh-CN/docs/Web/API/Navigator/oscpu /zh-CN/docs/DOM/window.navigator.platform /zh-CN/docs/Web/API/NavigatorID/platform /zh-CN/docs/DOM/window.navigator.plugins /zh-CN/docs/Web/API/NavigatorPlugins/plugins -/zh-CN/docs/DOM/window.navigator.registerContentHandler /zh-CN/docs/Web/API/Navigator/registerContentHandler +/zh-CN/docs/DOM/window.navigator.registerContentHandler /zh-CN/docs/orphaned/Web/API/Navigator/registerContentHandler /zh-CN/docs/DOM/window.navigator.userAgent /zh-CN/docs/Web/API/NavigatorID/userAgent /zh-CN/docs/DOM/window.navigator.vendor /zh-CN/docs/Web/API/Navigator/vendor /zh-CN/docs/DOM/window.navigator.vendorSub /zh-CN/docs/Web/API/Navigator/vendorSub @@ -1660,9 +1660,10 @@ /zh-CN/docs/Web/API/Navigator.mozIsLocallyAvailable /zh-CN/docs/Web/API/Navigator/mozIsLocallyAvailable /zh-CN/docs/Web/API/Navigator.mozSettings /zh-CN/docs/Web/API/Navigator/mozSettings /zh-CN/docs/Web/API/Navigator.oscpu /zh-CN/docs/Web/API/Navigator/oscpu -/zh-CN/docs/Web/API/Navigator.registerContentHandler /zh-CN/docs/Web/API/Navigator/registerContentHandler +/zh-CN/docs/Web/API/Navigator.registerContentHandler /zh-CN/docs/orphaned/Web/API/Navigator/registerContentHandler /zh-CN/docs/Web/API/Navigator.vendor /zh-CN/docs/Web/API/Navigator/vendor /zh-CN/docs/Web/API/Navigator.vendorSub /zh-CN/docs/Web/API/Navigator/vendorSub +/zh-CN/docs/Web/API/Navigator/registerContentHandler /zh-CN/docs/orphaned/Web/API/Navigator/registerContentHandler /zh-CN/docs/Web/API/NavigatorGeolocation /zh-CN/docs/conflicting/Web/API/Geolocation /zh-CN/docs/Web/API/NavigatorGeolocation.geolocation /zh-CN/docs/Web/API/Navigator/geolocation /zh-CN/docs/Web/API/NavigatorGeolocation/geolocation /zh-CN/docs/Web/API/Navigator/geolocation diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index df636cf7db..0298927ad2 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -17866,14 +17866,6 @@ "chenqingyue" ] }, - "Web/API/Navigator/registerContentHandler": { - "modified": "2019-03-24T00:16:02.965Z", - "contributors": [ - "teoli", - "khalid32", - "ziyunfei" - ] - }, "Web/API/Navigator/registerProtocolHandler": { "modified": "2020-11-12T06:22:45.529Z", "contributors": [ @@ -49982,6 +49974,14 @@ "MeCKodo" ] }, + "orphaned/Web/API/Navigator/registerContentHandler": { + "modified": "2019-03-24T00:16:02.965Z", + "contributors": [ + "teoli", + "khalid32", + "ziyunfei" + ] + }, "orphaned/Web/API/NavigatorPlugins/测试滕盖": { "modified": "2019-03-23T22:49:37.647Z", "contributors": [ diff --git a/files/zh-cn/orphaned/web/api/navigator/registercontenthandler/index.html b/files/zh-cn/orphaned/web/api/navigator/registercontenthandler/index.html new file mode 100644 index 0000000000..a266c55bfb --- /dev/null +++ b/files/zh-cn/orphaned/web/api/navigator/registercontenthandler/index.html @@ -0,0 +1,48 @@ +--- +title: Navigator.registerContentHandler() +slug: orphaned/Web/API/Navigator/registerContentHandler +translation_of: Web/API/Navigator/registerContentHandler +original_slug: Web/API/Navigator/registerContentHandler +--- +
{{ ApiRef("HTML DOM") }}
+ +

概述

+ +

Allows web sites to register themselves as possible handlers for content of a particular MIME type.

+ +

{{ Note("Web sites may only register content handlers for themselves. For security reasons, it\'s not possible for an extension or web site to register content handlers targeting other sites.") }}

+ +

语法

+ +
window.navigator.registerContentHandler(mimeType, uri, title);
+
+ + + +

例子

+ +
navigator.registerContentHandler("application/vnd.mozilla.maybe.feed",
+                                 "http://www.example.tld/?foo=%s",
+                                 "My Feed Reader");
+
+ +

备注

+ +

For Firefox 2 and above, only the application/vnd.mozilla.maybe.feed, application/atom+xml, and application/rss+xml MIME types are supported. All values have the same effect, and the registered handler will receive feeds in all Atom and RSS versions  (see {{ Bug("391286") }}).

+ +

规范

+ +

WHATWG's Web Applications 1.0 工作草案

+ +

相关链接

+ + + +

{{ languages( { "ja": "ja/DOM/window.navigator.registerContentHandler", "en": "en/DOM/window.navigator.registerContentHandler", "pl": "pl/DOM/window.navigator.registerContentHandler" } ) }}

diff --git a/files/zh-cn/web/api/navigator/registercontenthandler/index.html b/files/zh-cn/web/api/navigator/registercontenthandler/index.html deleted file mode 100644 index 4a858777d6..0000000000 --- a/files/zh-cn/web/api/navigator/registercontenthandler/index.html +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Navigator.registerContentHandler() -slug: Web/API/Navigator/registerContentHandler -translation_of: Web/API/Navigator/registerContentHandler ---- -
{{ ApiRef("HTML DOM") }}
- -

概述

- -

Allows web sites to register themselves as possible handlers for content of a particular MIME type.

- -

{{ Note("Web sites may only register content handlers for themselves. For security reasons, it\'s not possible for an extension or web site to register content handlers targeting other sites.") }}

- -

语法

- -
window.navigator.registerContentHandler(mimeType, uri, title);
-
- - - -

例子

- -
navigator.registerContentHandler("application/vnd.mozilla.maybe.feed",
-                                 "http://www.example.tld/?foo=%s",
-                                 "My Feed Reader");
-
- -

备注

- -

For Firefox 2 and above, only the application/vnd.mozilla.maybe.feed, application/atom+xml, and application/rss+xml MIME types are supported. All values have the same effect, and the registered handler will receive feeds in all Atom and RSS versions  (see {{ Bug("391286") }}).

- -

规范

- -

WHATWG's Web Applications 1.0 工作草案

- -

相关链接

- - - -

{{ languages( { "ja": "ja/DOM/window.navigator.registerContentHandler", "en": "en/DOM/window.navigator.registerContentHandler", "pl": "pl/DOM/window.navigator.registerContentHandler" } ) }}

-- cgit v1.2.3-54-g00ecf