From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/document/compatmode/index.html | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 files/ru/web/api/document/compatmode/index.html (limited to 'files/ru/web/api/document/compatmode/index.html') diff --git a/files/ru/web/api/document/compatmode/index.html b/files/ru/web/api/document/compatmode/index.html new file mode 100644 index 0000000000..f8a48a4ca2 --- /dev/null +++ b/files/ru/web/api/document/compatmode/index.html @@ -0,0 +1,50 @@ +--- +title: Document.compatMode +slug: Web/API/Document/compatMode +tags: + - API + - DOM + - almost standards + - quirk + - standards + - Свойство + - режимы +translation_of: Web/API/Document/compatMode +--- +

{{ ApiRef("DOM") }}

+ +

Определяет когда документ отображается в Quirks mode или Стандартном режиме.

+ +

Синтаксис

+ +
mode = document.compatMode
+
+ +

Значения

+ + + +
+
mode
+
Исчислимая величина, которая может быть:
+
+ +
+

Примечание: все эти режимы внесены в стандарт, поэтому старые названия "standards" и "almost standards" теперь бессмысленны и не используются.

+
+ +

Пример

+ +
if (document.compatMode == "BackCompat") {
+  // в Quirks режиме
+}
+
+ +

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

+ + -- cgit v1.2.3-54-g00ecf