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 --- .../navigator/registercontenthandler/index.html | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 files/pl/orphaned/web/api/navigator/registercontenthandler/index.html (limited to 'files/pl/orphaned/web') 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" } ) }}

-- cgit v1.2.3-54-g00ecf