From d2c717611f2ab3dc0a25deae3a78cf44aa31a4f2 Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Sun, 16 May 2021 22:30:00 +0900 Subject: Migrate CompatibilityTable to Compat macro (lang-ru) (#876) * Migrate to Compat macro * Migrate to Compat macro (multiple in page) * Migrate to Compat macro * Migrate to Compat macro (removed) --- files/ru/web/api/window/crypto/index.html | 50 +------------ .../api/window/deviceorientation_event/index.html | 50 +------------ .../api/window/domcontentloaded_event/index.html | 48 +------------ files/ru/web/api/window/frameelement/index.html | 48 +------------ .../ru/web/api/window/getcomputedstyle/index.html | 70 +----------------- files/ru/web/api/window/getselection/index.html | 52 +------------- .../ru/web/api/window/hashchange_event/index.html | 84 +--------------------- files/ru/web/api/window/popstate_event/index.html | 58 +-------------- files/ru/web/api/window/postmessage/index.html | 81 +-------------------- .../web/api/window/requestidlecallback/index.html | 56 +-------------- files/ru/web/api/window/scrollx/index.html | 79 +------------------- files/ru/web/api/window/sessionstorage/index.html | 62 +--------------- files/ru/web/api/window/top/index.html | 54 +------------- 13 files changed, 13 insertions(+), 779 deletions(-) (limited to 'files/ru/web/api/window') diff --git a/files/ru/web/api/window/crypto/index.html b/files/ru/web/api/window/crypto/index.html index 22570b6ddd..29854ed7ce 100644 --- a/files/ru/web/api/window/crypto/index.html +++ b/files/ru/web/api/window/crypto/index.html @@ -36,55 +36,7 @@ translation_of: Web/API/Window/crypto

Реализация в браузерах

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
ФункционалChromeFirefox (Gecko)Internet ExplorerOperaSafari
Базовый{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}11 {{ property_prefix("-ms") }}15{{ CompatVersionUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Базовый{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
-
+

{{Compat("api.Window.crypto")}}

Смотрите также

diff --git a/files/ru/web/api/window/deviceorientation_event/index.html b/files/ru/web/api/window/deviceorientation_event/index.html index 013c5306ca..4c42fc7a7a 100644 --- a/files/ru/web/api/window/deviceorientation_event/index.html +++ b/files/ru/web/api/window/deviceorientation_event/index.html @@ -104,55 +104,7 @@ var handleOrientationEvent = function(frontToBack, leftToRight, rotateDegrees) {

Совместимость с браузерами

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
СвойствоChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Базовая поддержка7.03.6[1]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - -
СвойствоAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Базовая поддержка3.03.6[1]{{CompatNo}}124.2
-
- -

[1] Firefox 3.6, 4, и 5 поддерживают mozOrientation вместо стандартного события DeviceOrientation.

+

{{Compat("api.Window.deviceorientation_event")}}

Похожие события

diff --git a/files/ru/web/api/window/domcontentloaded_event/index.html b/files/ru/web/api/window/domcontentloaded_event/index.html index 8531476a12..14f2db3e49 100644 --- a/files/ru/web/api/window/domcontentloaded_event/index.html +++ b/files/ru/web/api/window/domcontentloaded_event/index.html @@ -88,53 +88,7 @@ for(var i=0; i<1000000000; i++)

Поддержка браузерами

-

{{CompatibilityTable}}

- - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Базовая поддержка1.0[1]{{CompatGeckoDesktop("1")}}[1]9.0[2]9.03.1[1]
- - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Базовая поддержка{{CompatVersionUnknown}}[1]{{CompatGeckoMobile("1")}}[1]{{CompatUnknown}}[2]{{CompatVersionUnknown}}{{CompatVersionUnknown}}[1]
- -

[1] Всплытие для этого события поддерживается как минимум с версий Gecko 1.9.2, Chrome 6, и Safari 4.

- -

[2] Internet Explorer 8 поддерживает событие readystatechange, которое можно использовать для определения готовности DOM. В более ранних версиях Internet Explorer,это событие можно определить циклическим выполнением document.documentElement.doScroll("left");, это событие будет выбрасывать ошибку если DOM не готов.

+

{{Compat("api.Window.DOMContentLoaded_event")}}

Связанные события

diff --git a/files/ru/web/api/window/frameelement/index.html b/files/ru/web/api/window/frameelement/index.html index 9b1900a74e..5e960242ff 100644 --- a/files/ru/web/api/window/frameelement/index.html +++ b/files/ru/web/api/window/frameelement/index.html @@ -39,53 +39,7 @@ if (frameEl) {

Совместимость с браузерами

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support4?{{CompatGeckoDesktop("1")}}5.5?12.1?4?
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatGeckoDesktop("1")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+

{{Compat("api.Window.frameElement")}}

Смотрите также

diff --git a/files/ru/web/api/window/getcomputedstyle/index.html b/files/ru/web/api/window/getcomputedstyle/index.html index bb728217ab..0acceae418 100644 --- a/files/ru/web/api/window/getcomputedstyle/index.html +++ b/files/ru/web/api/window/getcomputedstyle/index.html @@ -113,75 +113,7 @@ var style = window.getComputedStyle(elem1, null);

Браузерная поддержка

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}9{{CompatVersionUnknown}}{{CompatVersionUnknown}}
pseudo-element support{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}915{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}WP7 Mango{{CompatVersionUnknown}}{{CompatVersionUnknown}}
pseudo-element support{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}
-
+

{{Compat("api.Window.getComputedStyle")}}

Спецификации

diff --git a/files/ru/web/api/window/getselection/index.html b/files/ru/web/api/window/getselection/index.html index 925cfe39ef..e7c7fa0ea5 100644 --- a/files/ru/web/api/window/getselection/index.html +++ b/files/ru/web/api/window/getselection/index.html @@ -77,57 +77,7 @@ translation_of: Web/API/Window/getSelection

Совместимость с браузером

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
ОсобенностьChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Базовая поддержка{{ CompatVersionUnknown() }}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }}9{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Базовая поддержка{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+

{{Compat("api.Window.getSelection")}}

diff --git a/files/ru/web/api/window/hashchange_event/index.html b/files/ru/web/api/window/hashchange_event/index.html index 84087f124c..948beedbad 100644 --- a/files/ru/web/api/window/hashchange_event/index.html +++ b/files/ru/web/api/window/hashchange_event/index.html @@ -68,89 +68,7 @@ translation_of: Web/API/Window/hashchange_event

Совместимость с браузерами

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support5.0{{ CompatGeckoDesktop("1.9.2") }}
- Support for the oldURL/newURL attributes added in Firefox 6.
8.0
- oldURL/newURL attributes are not supported.
10.65.0
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support2.2{{ CompatGeckoMobile("1.9.2") }}9.011.05.0
-
- -


- There are several fallback scripts listed on this page. Basically those scripts check the location.hash at a regular interval. Here is a version that allows only one handler to be bound to the window.onhashchange property:

- -
(function(window) {
-
-  // exit if the browser implements that event
-  if ( "onhashchange" in window.document.body ) { return; }
-
-  var location = window.location,
-    oldURL = location.href,
-    oldHash = location.hash;
-
-  // check the location hash on a 100ms interval
-  setInterval(function() {
-    var newURL = location.href,
-      newHash = location.hash;
-
-    // if the hash has changed and a handler has been bound...
-    if ( newHash != oldHash && typeof window.onhashchange === "function" ) {
-      // execute the handler
-      window.onhashchange({
-        type: "hashchange",
-        oldURL: oldURL,
-        newURL: newURL
-      });
-
-      oldURL = newURL;
-      oldHash = newHash;
-    }
-  }, 100);
-
-})(window);
-
+

{{Compat("api.Window.hashchange_event")}}

Похожие события

diff --git a/files/ru/web/api/window/popstate_event/index.html b/files/ru/web/api/window/popstate_event/index.html index c2f07004b4..d64af5c795 100644 --- a/files/ru/web/api/window/popstate_event/index.html +++ b/files/ru/web/api/window/popstate_event/index.html @@ -67,63 +67,7 @@ translation_of: Web/API/Window/popstate_event

Browser compatibility

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("2")}}10.0 [3]{{CompatVersionUnknown}}{{CompatVersionUnknown}}[1]
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support3.0[2]{{CompatVersionUnknown}}{{CompatGeckoMobile("2")}}10.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}[1]
-
- -

[1] The implementation has limited support.

- -

[2] The implementation in Android 2.2 and 2.3 was buggy.

- -

[3] IE & Edge do not fire the popstate event when the URL's hash value changes, see the bug report.

+

{{Compat("api.Window.popstate_event")}}

Example

diff --git a/files/ru/web/api/window/postmessage/index.html b/files/ru/web/api/window/postmessage/index.html index 22c6f6bf88..80e202e942 100644 --- a/files/ru/web/api/window/postmessage/index.html +++ b/files/ru/web/api/window/postmessage/index.html @@ -155,86 +155,7 @@ window.addEventListener("message", receiveMessage, false);

Browser compatibility

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.0{{CompatVersionUnknown}}{{CompatGeckoDesktop(6.0)}}[1]
- {{CompatGeckoDesktop(8.0)}}[2]
8.0[3]
- 10.0[4]
9.54.0
transfer argument{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop(20.0)}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop(6.0)}}[1]
- {{CompatGeckoDesktop(8.0)}}[2]
{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
transfer argument{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoMobile(20.0)}}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

[1] Prior to Gecko 6.0 {{geckoRelease("6.0")}}, the message parameter must be a string. Starting in Gecko 6.0 {{geckoRelease("6.0")}}, the message parameter is serialized using the structured clone algorithm. This means you can pass a broad variety of data objects safely to the destination window without having to serialize them yourself.

- -

[2] Gecko 8.0 introduced support for sending {{domxref("File")}} and {{domxref("FileList")}} objects between windows. This is only allowed if the recipient's principal is contained within the sender's principal for security reasons.

- -

[3] IE8 and IE9 only support it for {{HTMLElement("frame")}} and {{HTMLElement("iframe")}}.

- -

[4] IE10 has important limitations: see this article for details.

+

{{Compat("api.Window.postMessage")}}

See also

diff --git a/files/ru/web/api/window/requestidlecallback/index.html b/files/ru/web/api/window/requestidlecallback/index.html index 888160d034..c4969a939d 100644 --- a/files/ru/web/api/window/requestidlecallback/index.html +++ b/files/ru/web/api/window/requestidlecallback/index.html @@ -55,61 +55,7 @@ translation_of: Web/API/Window/requestIdleCallback

Совместимость с браузерами

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(47)}}{{CompatNo}}{{CompatGeckoDesktop(55)}}{{CompatNo}}{{CompatOpera(34)}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(47)}}{{CompatChrome(47)}}{{CompatGeckoMobile(55)}}{{CompatNo}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}
-
- -

requestIdleCallback() включён в Firefox 53 но по умолчанию отключён. По умолчанию включён, начиная с Firefox 55.

+

{{Compat("api.Window.requestIdleCallback")}}

Смотрите также

diff --git a/files/ru/web/api/window/scrollx/index.html b/files/ru/web/api/window/scrollx/index.html index 9605892f79..778e34824b 100644 --- a/files/ru/web/api/window/scrollx/index.html +++ b/files/ru/web/api/window/scrollx/index.html @@ -70,84 +70,7 @@ var y = (window.pageYOffset !== undefined)

Совместимость с браузерами

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Базовая поддержка{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
Точность субпикселей{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop(55)}}{{CompatNo}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Базовая поддержка{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
Точность субпикселей{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile(55)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
-
+

{{Compat("api.Window.scrollX")}}

Смотрите также

diff --git a/files/ru/web/api/window/sessionstorage/index.html b/files/ru/web/api/window/sessionstorage/index.html index 720db502de..13a2919a13 100644 --- a/files/ru/web/api/window/sessionstorage/index.html +++ b/files/ru/web/api/window/sessionstorage/index.html @@ -69,67 +69,7 @@ field.addEventListener("change", function() {

Поддержка браузерами

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
ВозможностьChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
localStorage43.5810.504
sessionStorage52810.504
-
- -
- - - - - - - - - - - - - - - - - - - -
ВозможностьAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support2.1{{ CompatUnknown }}811iOS 3.2
-
- -

Все браузеры имеют разный уровень поддержки как localStorage так и sessionStorage. Здесь вы можете посмотреть detailed rundown of all the storage capacities for various browsers.

- -
-

Замечание: начиная с iOS 5.1, Safari Mobile сохраняет данные из localStorage в специальную папку, которая может быть случайно очищена по просьбе системы, обычно это происходит, когда заканчивается место.

-
+

{{Compat("api.Window.sessionStorage")}}

Смотрите также

diff --git a/files/ru/web/api/window/top/index.html b/files/ru/web/api/window/top/index.html index 5d1bf9db04..7e7f62043e 100644 --- a/files/ru/web/api/window/top/index.html +++ b/files/ru/web/api/window/top/index.html @@ -44,56 +44,4 @@ translation_of: Web/API/Window/top

Совместимость с браузерами

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}[1]{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

[1] Starting in Gecko 6.0 {{geckoRelease("6.0")}}, this property is read only, as defined by the standard.

+

{{Compat("api.Window.top")}}

-- cgit v1.2.3-54-g00ecf