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/zh-cn/_redirects.txt | 5 ++- files/zh-cn/_wikihistory.json | 16 ++++---- .../navigator/registercontenthandler/index.html | 48 ++++++++++++++++++++++ .../navigator/registercontenthandler/index.html | 47 --------------------- 4 files changed, 59 insertions(+), 57 deletions(-) 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/zh-cn') 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