diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
| commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
| tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pl/web/api/document/compatmode | |
| parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
| download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip | |
initial commit
Diffstat (limited to 'files/pl/web/api/document/compatmode')
| -rw-r--r-- | files/pl/web/api/document/compatmode/index.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/files/pl/web/api/document/compatmode/index.html b/files/pl/web/api/document/compatmode/index.html new file mode 100644 index 0000000000..a2750f2ad8 --- /dev/null +++ b/files/pl/web/api/document/compatmode/index.html @@ -0,0 +1,32 @@ +--- +title: document.compatMode +slug: Web/API/Document/compatMode +tags: + - DOM + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/API/Document/compatMode +--- +<p>{{ ApiRef() }}</p> +<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3> +<p>Wskazuje, czy dokument renderowany jest w trybie zgodności wstecznej (ang. + <i> + quirks mode</i> + ), czy też w trybie standardów (ang. + <i> + strict mode</i> + ).</p> +<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3> +<pre class="eval"><i>tryb</i> = document.compatMode +</pre> +<h3 id="Parametry" name="Parametry">Parametry</h3> +<ul> + <li><code>tryb</code> jest ciągiem zawierającym "BackCompat" dla trybu zgodności wstecznej lub "CSS1Compat" dla trybu standardów.</li> +</ul> +<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3> +<pre class="eval">if ( document.compatMode == "BackCompat" ){ + //wykonaj coś dla trybu zgodności +} +</pre> +<p>{{ languages( { "en": "en/DOM/document.compatMode" } ) }}</p> |
