aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/url
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-02 20:01:54 +0900
committerIrvin <irvinfly@gmail.com>2022-03-04 01:02:45 +0800
commitc46e9da7f68bd682fc9ff1452b7fe63df1227151 (patch)
treefe6c6e20521b16a22ec64755b88a39effd81a4d7 /files/zh-tw/web/api/url
parente671353fc364cef89441d031e0e8b9300b67951b (diff)
downloadtranslated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.tar.gz
translated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.tar.bz2
translated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.zip
Migrate to Compat macro (zh-tw)
Diffstat (limited to 'files/zh-tw/web/api/url')
-rw-r--r--files/zh-tw/web/api/url/createobjecturl/index.html73
-rw-r--r--files/zh-tw/web/api/url/index.html106
2 files changed, 2 insertions, 177 deletions
diff --git a/files/zh-tw/web/api/url/createobjecturl/index.html b/files/zh-tw/web/api/url/createobjecturl/index.html
index 8760dffaec..571b2a11f8 100644
--- a/files/zh-tw/web/api/url/createobjecturl/index.html
+++ b/files/zh-tw/web/api/url/createobjecturl/index.html
@@ -56,78 +56,7 @@ translation_of: Web/API/URL/createObjectURL
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>8 [1]<br>
- {{CompatChrome(23)}}</td>
- <td>{{CompatGeckoDesktop(2)}}</td>
- <td>{{CompatIE(10)}}</td>
- <td>{{CompatOpera(15)}}</td>
- <td>{{CompatSafari(6)}} [1]<br>
- {{CompatSafari(7)}}</td>
- </tr>
- <tr>
- <td>In a {{ domxref("Worker", "Web Worker") }}</td>
- <td>10 [1]<br>
- {{CompatChrome(23)}}</td>
- <td>{{CompatGeckoDesktop(21)}}</td>
- <td>{{CompatIE(11)}}</td>
- <td>{{CompatOpera(15)}}</td>
- <td>{{CompatSafari(6)}} [1]<br>
- {{CompatSafari(7)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome for Android</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>18 [1]</td>
- <td>4.0 [1]</td>
- <td>{{CompatGeckoMobile(14)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(15)}} [1]</td>
- <td>6.0 [1]</td>
- </tr>
- <tr>
- <td>In a {{ domxref("Worker", "Web Worker") }}</td>
- <td>18 [1]</td>
- <td>{{CompatVersionUnknown}} [1]</td>
- <td>{{CompatGeckoMobile(14)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(15)}} [1]</td>
- <td>6.0 [1]</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1]  在該瀏覽器中必須使用 <code>webkitURL 而非 <a href="/en-US/docs/Web/API/URL">URL</a></code></p>
+{{Compat("api.URL.createObjectURL")}}
<h2 id="另見">另見</h2>
diff --git a/files/zh-tw/web/api/url/index.html b/files/zh-tw/web/api/url/index.html
index 0a7fdb670b..db2d02126a 100644
--- a/files/zh-tw/web/api/url/index.html
+++ b/files/zh-tw/web/api/url/index.html
@@ -98,111 +98,7 @@ translation_of: Web/API/URL
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>8.0<sup>[2]</sup><br>
- 32</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("2.0")}}<sup>[1][3]</sup><br>
- {{CompatGeckoDesktop("19.0")}}</td>
- <td>10.0</td>
- <td>15.0<sup>[2]</sup><br>
- 19</td>
- <td>6.0<sup>[2]</sup><br>
- 7.0</td>
- </tr>
- <tr>
- <td><code>username</code>, <code>password</code>, and <code>origin</code></td>
- <td>32</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("26.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>19</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>searchParams</code></td>
- <td>{{CompatChrome(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("29.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>36</td>
- <td>{{CompatNo}}</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>4<sup>[2]</sup><br>
- 4.4</td>
- <td>8.0<sup>[2]</sup><br>
- 32</td>
- <td>{{CompatGeckoMobile("14.0")}}<sup>[1][3]</sup><br>
- {{CompatGeckoMobile("19.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>15.0<sup>[2]</sup></td>
- <td>6.0<sup>[2]</sup></td>
- </tr>
- <tr>
- <td><code>username</code>, <code>password</code>, and <code>origin</code></td>
- <td>4.4</td>
- <td>32</td>
- <td>{{CompatGeckoDesktop("26.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>searchParams</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(49)}}</td>
- <td>{{CompatGeckoMobile("29.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] From Gecko 2 (Firefox 4) to Gecko 18 included, Gecko supported this interface with the non-standard <code>nsIDOMMozURLProperty</code> internal type. As the only to access such an object was through {{domxref("window.URL")}}, in practice, this didn't make any difference.</p>
-
-<p>[2] This feature is implemented under the non-standard name <code>webkitURL</code>.</p>
-
-<p>[3] For Firefox, to use from chrome code, JSM and Bootstrap scope, you have to import it like this:</p>
-
-<pre class="brush: js">Cu.importGlobalProperties(['URL']);
-</pre>
-
-<p><code>URL</code> is available in Worker scopes.</p>
+{{Compat("api.URL")}}
<h2 id="參見">參見</h2>