From 0ce7202a706c9036eeea42c158f433c2b7940457 Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Thu, 3 Mar 2022 22:36:23 +0900 Subject: Migrate CompatibilityTable to Compat macro (es) (#4355) * Migrate CompatibilityTable to Compat macro (es) * Migrate to multiple Compat macro (es) --- .../reference/operators/class/index.html | 52 +-------------- .../reference/operators/comma_operator/index.html | 50 +-------------- .../operators/conditional_operator/index.html | 50 +-------------- .../reference/operators/delete/index.html | 73 +--------------------- .../reference/operators/grouping/index.html | 50 +-------------- .../reference/operators/new.target/index.html | 52 +-------------- .../reference/operators/yield_star_/index.html | 48 +------------- 7 files changed, 7 insertions(+), 368 deletions(-) (limited to 'files/es/web/javascript/reference/operators') diff --git a/files/es/web/javascript/reference/operators/class/index.html b/files/es/web/javascript/reference/operators/class/index.html index 9800963fd7..90fd04bc9c 100644 --- a/files/es/web/javascript/reference/operators/class/index.html +++ b/files/es/web/javascript/reference/operators/class/index.html @@ -97,57 +97,7 @@ Foo.name; // "NamedFoo"

Compatibilidad en navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Soporte básico{{CompatChrome(42.0)}}{{CompatGeckoDesktop(45)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome para Android
Soporte básico{{CompatNo}}{{CompatChrome(42.0)}}{{CompatGeckoMobile(45)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatChrome(42.0)}}
-
+{{Compat("javascript.operators.class")}}

Ver también

diff --git a/files/es/web/javascript/reference/operators/comma_operator/index.html b/files/es/web/javascript/reference/operators/comma_operator/index.html index b1325fbea0..ecff81d0af 100644 --- a/files/es/web/javascript/reference/operators/comma_operator/index.html +++ b/files/es/web/javascript/reference/operators/comma_operator/index.html @@ -76,55 +76,7 @@ original_slug: Web/JavaScript/Referencia/Operadores/operador_coma

Compatibilidad en navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}3.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("javascript.operators.comma")}}

Ver también

diff --git a/files/es/web/javascript/reference/operators/conditional_operator/index.html b/files/es/web/javascript/reference/operators/conditional_operator/index.html index 8f26d6ce67..fd99951e7a 100644 --- a/files/es/web/javascript/reference/operators/conditional_operator/index.html +++ b/files/es/web/javascript/reference/operators/conditional_operator/index.html @@ -115,55 +115,7 @@ location.assign(url); // "stop.html"

Compatibilidad de navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Soporte básico{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Soporte básico{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("javascript.operators.conditional")}}

Véase también

diff --git a/files/es/web/javascript/reference/operators/delete/index.html b/files/es/web/javascript/reference/operators/delete/index.html index 94ede3308d..f98bca4152 100644 --- a/files/es/web/javascript/reference/operators/delete/index.html +++ b/files/es/web/javascript/reference/operators/delete/index.html @@ -163,78 +163,7 @@ if (3 in trees) {

Compatibilidad de navegador

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
Temporal dead zone{{CompatUnknown}}{{CompatGeckoDesktop(36)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
Temporal dead zone{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoMobile(36)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

Cross-browser issues

- -

Although ECMAScript makes iteration order of objects implementation-dependent, it may appear that all major browsers support an iteration order based on the earliest added property coming first (at least for properties not on the prototype). However, in the case of Internet Explorer, when one uses delete on a property, some confusing behavior results, preventing other browsers from using simple objects like object literals as ordered associative arrays. In Explorer, while the property value is indeed set to undefined, if one later adds back a property with the same name, the property will be iterated in its old position--not at the end of the iteration sequence as one might expect after having deleted the property and then added it back.

- -

So, if you want to simulate an ordered associative array in a cross-browser environment, you are forced to either use two separate arrays (one for the keys and the other for the values), or build an array of single-property objects, etc.

+{{Compat("javascript.operators.delete")}}

Ver también

diff --git a/files/es/web/javascript/reference/operators/grouping/index.html b/files/es/web/javascript/reference/operators/grouping/index.html index 0d41dd7d03..0a15f7e141 100644 --- a/files/es/web/javascript/reference/operators/grouping/index.html +++ b/files/es/web/javascript/reference/operators/grouping/index.html @@ -70,55 +70,7 @@ a * c + b * c // 9

Compatibilidad en navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Soporte básico{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("javascript.operators.grouping")}}

Temas relacionados

diff --git a/files/es/web/javascript/reference/operators/new.target/index.html b/files/es/web/javascript/reference/operators/new.target/index.html index d327e63c35..1baa649517 100644 --- a/files/es/web/javascript/reference/operators/new.target/index.html +++ b/files/es/web/javascript/reference/operators/new.target/index.html @@ -78,57 +78,7 @@ var b = new B(); // escribe en el log "B"

Compatibilidad en navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatChrome(46.0)}}{{CompatGeckoDesktop(41)}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(46.0)}}{{CompatGeckoMobile(41)}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatChrome(46.0)}}
-
+{{Compat("javascript.operators.new_target")}}

Ver también

diff --git a/files/es/web/javascript/reference/operators/yield_star_/index.html b/files/es/web/javascript/reference/operators/yield_star_/index.html index 7a728175ba..711d9d41e2 100644 --- a/files/es/web/javascript/reference/operators/yield_star_/index.html +++ b/files/es/web/javascript/reference/operators/yield_star_/index.html @@ -127,53 +127,7 @@ console.log(result); // "foo"

Compatibilidad con navegadores

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Soporte básico {{CompatVersionUnknown}}{{CompatGeckoDesktop("27.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Soporte básico{{CompatVersionUnknown}}{{CompatGeckoMobile("27.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("javascript.operators.yield_star")}}

Notas específicas de Firefox

-- cgit v1.2.3-54-g00ecf