aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/javascript/reference/global_objects/set
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-03 22:36:23 +0900
committerGitHub <noreply@github.com>2022-03-03 07:36:23 -0600
commit0ce7202a706c9036eeea42c158f433c2b7940457 (patch)
tree4e952b5472e3140bd12ac07e77df3aa47e79b60f /files/es/web/javascript/reference/global_objects/set
parent581e6fb5827a5450e295c91250dd0563a3c9251a (diff)
downloadtranslated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.gz
translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.bz2
translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.zip
Migrate CompatibilityTable to Compat macro (es) (#4355)
* Migrate CompatibilityTable to Compat macro (es) * Migrate to multiple Compat macro (es)
Diffstat (limited to 'files/es/web/javascript/reference/global_objects/set')
-rw-r--r--files/es/web/javascript/reference/global_objects/set/add/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/set/clear/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/set/delete/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/set/has/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/set/size/index.html52
5 files changed, 5 insertions, 247 deletions
diff --git a/files/es/web/javascript/reference/global_objects/set/add/index.html b/files/es/web/javascript/reference/global_objects/set/add/index.html
index 32e21d52c1..fc3e0947e4 100644
--- a/files/es/web/javascript/reference/global_objects/set/add/index.html
+++ b/files/es/web/javascript/reference/global_objects/set/add/index.html
@@ -60,55 +60,7 @@ console.log(mySet);
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Set.add")}}
<h2 id="Firefox-specific_notes">Firefox-specific notes</h2>
diff --git a/files/es/web/javascript/reference/global_objects/set/clear/index.html b/files/es/web/javascript/reference/global_objects/set/clear/index.html
index ff5bb74171..4b0161f3e4 100644
--- a/files/es/web/javascript/reference/global_objects/set/clear/index.html
+++ b/files/es/web/javascript/reference/global_objects/set/clear/index.html
@@ -62,55 +62,7 @@ mySet.has("bar") // false
<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("19.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>{{CompatGeckoMobile("19.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Set.clear")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/set/delete/index.html b/files/es/web/javascript/reference/global_objects/set/delete/index.html
index efaeb4ee7b..71f7bd9dce 100644
--- a/files/es/web/javascript/reference/global_objects/set/delete/index.html
+++ b/files/es/web/javascript/reference/global_objects/set/delete/index.html
@@ -60,55 +60,7 @@ mySet.has("foo"); // Retorna false. El elemento "foo" ya no está presente.
<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Set.delete")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/set/has/index.html b/files/es/web/javascript/reference/global_objects/set/has/index.html
index 8f1beef376..cc697267f5 100644
--- a/files/es/web/javascript/reference/global_objects/set/has/index.html
+++ b/files/es/web/javascript/reference/global_objects/set/has/index.html
@@ -66,55 +66,7 @@ mySet.has("bar"); // retorna false
<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Set.has")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/set/size/index.html b/files/es/web/javascript/reference/global_objects/set/size/index.html
index 2a3fb4f5d1..e924a74d93 100644
--- a/files/es/web/javascript/reference/global_objects/set/size/index.html
+++ b/files/es/web/javascript/reference/global_objects/set/size/index.html
@@ -48,57 +48,7 @@ mySet.size; // 3
<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>38</td>
- <td>{{ CompatGeckoDesktop("19") }} [1]</td>
- <td>{{ CompatIE("11") }}</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("19")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] From Gecko 13 (Firefox 13 / Thunderbird 13 / SeaMonkey 2.10) to Gecko 18 (Firefox 18 / Thunderbird 18 / SeaMonkey 2.15 / Firefox OS 1.0.1 / Firefox OS 1.1) la propiedad size fue implementado como un método <code>Set.prototype.size()</code>, esto fue cambiado a una propiedad en versiones posteriores conforme la especificación ECMAScript 6 (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=807001">bug 807001</a>).</p>
+{{Compat("javascript.builtins.Set.size")}}
<h2 id="Ver_también">Ver también</h2>