diff options
author | YujiSoftware <yuji.software+github@gmail.com> | 2022-03-02 20:22:51 +0900 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-03-04 01:03:17 +0800 |
commit | 9a110dee28ae2ef12ee014b98fda6bae6ee48edb (patch) | |
tree | 6525763f4313d7d8f42aefa699765f61ee1c63df /files/zh-cn/web/api/text | |
parent | eeddb651b6e8deb8ecabc2bc5bc28c8ead25cca5 (diff) | |
download | translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.gz translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.bz2 translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.zip |
Migrate to Compat macro (zh-cn)
Diffstat (limited to 'files/zh-cn/web/api/text')
-rw-r--r-- | files/zh-cn/web/api/text/assignedslot/index.html | 54 | ||||
-rw-r--r-- | files/zh-cn/web/api/text/index.html | 119 | ||||
-rw-r--r-- | files/zh-cn/web/api/text/text/index.html | 48 | ||||
-rw-r--r-- | files/zh-cn/web/api/text/wholetext/index.html | 52 |
4 files changed, 5 insertions, 268 deletions
diff --git a/files/zh-cn/web/api/text/assignedslot/index.html b/files/zh-cn/web/api/text/assignedslot/index.html index 860697d7bf..aed1033826 100644 --- a/files/zh-cn/web/api/text/assignedslot/index.html +++ b/files/zh-cn/web/api/text/assignedslot/index.html @@ -34,56 +34,4 @@ translation_of: Web/API/Text/assignedSlot <h2 id="Browser_Compatibility">Browser Compatibility</h2> -<div>{{CompatibilityTable}}</div> - -<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 (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatChrome(53.0)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Android Webview</th> - <th>Firefox Mobile (Gecko)</th> - <th>Firefox OS</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatNo}}</td> - <td>{{CompatChrome(53.0)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatChrome(53.0)}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Text.assignedSlot")}} diff --git a/files/zh-cn/web/api/text/index.html b/files/zh-cn/web/api/text/index.html index 53f9e6ad5a..b45551c76d 100644 --- a/files/zh-cn/web/api/text/index.html +++ b/files/zh-cn/web/api/text/index.html @@ -72,123 +72,8 @@ translation_of: Web/API/Text </tbody> </table> <h2 id="浏览器兼容性">浏览器兼容性</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>1.0 [3]</td> - <td>{{CompatGeckoDesktop("1.0")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}} [3]</td> - <td>{{CompatVersionUnknown}} [4]</td> - </tr> - <tr> - <td><code>wholeText</code></td> - <td>1.0</td> - <td>{{CompatGeckoDesktop("1.9.1")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td><code>isElementContentWhitespace</code></td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}<br> - Removed in {{CompatGeckoDesktop("10")}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>replaceWholeText</code></td> - <td>{{CompatVersionUnknown}} [1] [2]</td> - <td>{{CompatGeckoDesktop("1.9.1")}}<br> - Removed in {{CompatGeckoDesktop("10")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}} [1] [2]</td> - <td>{{CompatVersionUnknown}} [4]</td> - </tr> - <tr> - <td><code>Text()</code> constructor</td> - <td>28.0</td> - <td>{{CompatGeckoDesktop("24.0")}}</td> - <td>{{CompatNo}}</td> - <td>15.0</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>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}} [3]</td> - <td>{{CompatGeckoMobile("1.0")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}} [3]</td> - <td>{{CompatVersionUnknown}} [4]</td> - </tr> - <tr> - <td><code>wholeText</code></td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("1.9.1")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td><code>isElementContentWhitespace</code></td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}<br> - Removed in {{CompatGeckoMobile("10")}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - <tr> - <td><code>replaceWholeText</code></td> - <td>{{CompatVersionUnknown}} [1] [2]</td> - <td>{{CompatGeckoMobile("1.9.1")}}<br> - Removed in {{CompatGeckoMobile("10")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}} [1] [2]</td> - <td>{{CompatVersionUnknown}} [4]</td> - </tr> - <tr> - <td><code>Text()</code> constructor</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("24.0")}}</td> - <td>{{CompatNo}}</td> - <td>15.0</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> - </table> -</div> -<p>[1] Chromium is currently considering dropping its support.</p> -<p>[2] Before Chrome 30 and Opera 17, the argument wasn't mandatory, like required by the specification.</p> -<p>[3] Before Chrome 30 and Opera 17, <code>splitText()</code> argument was not mandatory, as required by the specification and implemented by IE and Gecko-based browsers.</p> -<p>[4] The argument is not mandatory, though required by the spec.</p> +{{Compat("api.Text")}} + <h2 id="相关链接">相关链接</h2> <ul> <li><a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">The DOM interfaces index</a>.</li> diff --git a/files/zh-cn/web/api/text/text/index.html b/files/zh-cn/web/api/text/text/index.html index dee1c9a948..72da61498a 100644 --- a/files/zh-cn/web/api/text/text/index.html +++ b/files/zh-cn/web/api/text/text/index.html @@ -39,53 +39,7 @@ translation_of: Web/API/Text/Text <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>28.0</td> - <td>{{CompatGeckoDesktop("24.0")}}</td> - <td>{{CompatNo}}</td> - <td>15.0</td> - <td>8.0</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>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>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("24.0")}}</td> - <td>{{CompatNo}}</td> - <td>15.0</td> - <td>8.0</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Text.Text")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/text/wholetext/index.html b/files/zh-cn/web/api/text/wholetext/index.html index 5ec686a5b9..9de63d4dd7 100644 --- a/files/zh-cn/web/api/text/wholetext/index.html +++ b/files/zh-cn/web/api/text/wholetext/index.html @@ -82,57 +82,7 @@ translation_of: Web/API/Text/wholeText <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>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>1.0</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("1.9.1")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Edge</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>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("1.9.1")}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Text.wholeText")}} <h2 id="See_also">See also</h2> |