aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/document
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/document
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/document')
-rw-r--r--files/zh-tw/web/api/document/body/index.html52
-rw-r--r--files/zh-tw/web/api/document/createdocumentfragment/index.html52
-rw-r--r--files/zh-tw/web/api/document/createelement/index.html86
-rw-r--r--files/zh-tw/web/api/document/createtextnode/index.html48
-rw-r--r--files/zh-tw/web/api/document/createtreewalker/index.html81
-rw-r--r--files/zh-tw/web/api/document/defaultview/index.html54
-rw-r--r--files/zh-tw/web/api/document/designmode/index.html56
-rw-r--r--files/zh-tw/web/api/document/getelementsbyclassname/index.html48
-rw-r--r--files/zh-tw/web/api/document/head/index.html52
-rw-r--r--files/zh-tw/web/api/document/queryselector/index.html49
-rw-r--r--files/zh-tw/web/api/document/registerelement/index.html50
11 files changed, 13 insertions, 615 deletions
diff --git a/files/zh-tw/web/api/document/body/index.html b/files/zh-tw/web/api/document/body/index.html
index a33d2a7901..b460c50680 100644
--- a/files/zh-tw/web/api/document/body/index.html
+++ b/files/zh-tw/web/api/document/body/index.html
@@ -69,57 +69,7 @@ alert(document.body.id); // "newBodyElement"
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<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</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>2</td>
- <td>6</td>
- <td>9.6 (possibly earlier)</td>
- <td>4 (possibly earlier)</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>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>5 (probably earlier)</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.body")}}
<h2 id="參見">參見</h2>
diff --git a/files/zh-tw/web/api/document/createdocumentfragment/index.html b/files/zh-tw/web/api/document/createdocumentfragment/index.html
index efdd4c31e6..73190921e0 100644
--- a/files/zh-tw/web/api/document/createdocumentfragment/index.html
+++ b/files/zh-tw/web/api/document/createdocumentfragment/index.html
@@ -76,57 +76,7 @@ element.appendChild(fragment);
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特色</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>基礎支援</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</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>特色</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>Edge</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基礎支援</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.createDocumentFragment")}}
<h2 id="更多參考">更多參考</h2>
diff --git a/files/zh-tw/web/api/document/createelement/index.html b/files/zh-tw/web/api/document/createelement/index.html
index 2d847004cc..b89f63e21a 100644
--- a/files/zh-tw/web/api/document/createelement/index.html
+++ b/files/zh-tw/web/api/document/createelement/index.html
@@ -82,91 +82,7 @@ function addElement () {
<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 (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}<sup>[1][2]</sup></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>options</code> argument</td>
- <td>{{CompatVersionUnknown}}<sup>[3]</sup></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(50)}}<sup>[4][5]</sup></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>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>options</code> argument</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}<sup>[3]</sup></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}<sup>[3]</sup></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Starting with Gecko 22.0 {{geckoRelease("22.0")}} <code>createElement()</code> no longer uses the {{domxref("HTMLSpanElement")}} interface when the argument is "bgsounds", "multicol", or "image".  Instead, <code>HTMLUnknownElement</code> is used for "bgsound" and "multicol" and {{domxref("HTMLElement")}} <code>HTMLElement</code> is used for "image".</p>
-
-<p>[2] The Gecko implementation of <code>createElement</code> doesn't conform to the DOM spec for XUL and XHTML documents: <code>localName</code> and <code>namespaceURI</code> are not set to <code>null</code> on the created element. See {{ Bug(280692) }} for details.</p>
-
-<p>[3] In previous versions of the specification, this argument was just a string whose value was the custom element's tag name. For example: <code>document.createElement("button", "custom-button")</code> rather than <code>document.createElement("button", {id: "custom-button"})</code>. For the sake of backwards compatibility, Chrome accepts both forms.</p>
-
-<p>[4] See [3] above: like Chrome, Firefox accepts a string instead of an object here, but only from version 51 onwards. In version 50,  <code>options</code> must be an object.</p>
-
-<p>[5] To experiment with custom elements in Firefox, you must set the <code>dom.webcomponents.enabled</code> and <code>dom.webcomponents.customelements.enabled</code> preferences to <code>true</code>.</p>
+{{Compat("api.Document.createElement")}}
<h2 id="See_also" name="See_also">參見</h2>
diff --git a/files/zh-tw/web/api/document/createtextnode/index.html b/files/zh-tw/web/api/document/createtextnode/index.html
index 80d3d562b9..b90420cf8b 100644
--- a/files/zh-tw/web/api/document/createtextnode/index.html
+++ b/files/zh-tw/web/api/document/createtextnode/index.html
@@ -71,50 +71,4 @@ function addTextNode(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 (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</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>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.createTextNode")}}
diff --git a/files/zh-tw/web/api/document/createtreewalker/index.html b/files/zh-tw/web/api/document/createtreewalker/index.html
index 5e1b889c32..24582215c5 100644
--- a/files/zh-tw/web/api/document/createtreewalker/index.html
+++ b/files/zh-tw/web/api/document/createtreewalker/index.html
@@ -139,85 +139,8 @@ while(treeWalker.nextNode()) nodeList.push(treeWalker.currentNode);
</tbody>
</table>
<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>1.0</td>
- <td>{{CompatGeckoDesktop("1.8.1")}}</td>
- <td>9.0</td>
- <td>9.0</td>
- <td>3.0</td>
- </tr>
- <tr>
- <td><code>whatToShow</code> and <code>filter</code> optional</td>
- <td>1.0</td>
- <td>{{CompatGeckoDesktop("12")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>3.0</td>
- </tr>
- <tr>
- <td><code>expandEntityReferences</code> {{obsolete_inline}}</td>
- <td>1.0</td>
- <td>{{CompatGeckoDesktop("1.8.1")}}<br>
- Removed in {{CompatGeckoDesktop("12")}}</td>
- <td>9.0</td>
- <td>9.0</td>
- <td>3.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("1.8.1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>9.0</td>
- <td>3.0</td>
- </tr>
- <tr>
- <td><code>whatToShow</code> and <code>filter</code> optional</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("12")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>3.0</td>
- </tr>
- <tr>
- <td><code>expandEntityReferences</code> {{obsolete_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.8.1")}}<br>
- Removed in {{CompatGeckoDesktop("12")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>9.0</td>
- <td>3.0</td>
- </tr>
- </tbody>
- </table>
-</div>
+{{Compat("api.Document.createTreeWalker")}}
+
<h2 id="See_also">See also</h2>
<ul>
<li>The interface of the object it creates: {{domxref("TreeWalker")}}.</li>
diff --git a/files/zh-tw/web/api/document/defaultview/index.html b/files/zh-tw/web/api/document/defaultview/index.html
index 58905ebdeb..317d072b49 100644
--- a/files/zh-tw/web/api/document/defaultview/index.html
+++ b/files/zh-tw/web/api/document/defaultview/index.html
@@ -39,56 +39,4 @@ translation_of: Web/API/Document/defaultView
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Internet Explorer</th>
- <th>Edge</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatIE("9.0")}}</td>
- <td>0.10</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>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>Edge</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.defaultView")}}
diff --git a/files/zh-tw/web/api/document/designmode/index.html b/files/zh-tw/web/api/document/designmode/index.html
index 9f04db7952..ed59274e75 100644
--- a/files/zh-tw/web/api/document/designmode/index.html
+++ b/files/zh-tw/web/api/document/designmode/index.html
@@ -49,61 +49,7 @@ document.designMode = "off";</pre>
<h2 id="瀏覽器相容性" style="font-size: 2.14285714285714rem;">瀏覽器相容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th style="line-height: 16px;">功能</th>
- <th style="line-height: 16px;">Chrome</th>
- <th style="line-height: 16px;">Edge</th>
- <th style="line-height: 16px;">Firefox (Gecko)</th>
- <th style="line-height: 16px;">Internet Explorer</th>
- <th style="line-height: 16px;">Opera</th>
- <th style="line-height: 16px;">Safari</th>
- </tr>
- <tr>
- <td>基本支援</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</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 style="line-height: 16px;">功能</th>
- <th style="line-height: 16px;">Android</th>
- <th style="line-height: 16px;">Android Webview</th>
- <th style="line-height: 16px;">Edge</th>
- <th style="line-height: 16px;">Firefox Mobile (Gecko)</th>
- <th style="line-height: 16px;">IE Mobile</th>
- <th style="line-height: 16px;">Opera Mobile</th>
- <th style="line-height: 16px;">Safari Mobile</th>
- <th style="line-height: 16px;">Chrome for Android</th>
- </tr>
- <tr>
- <td>基本支援</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.designMode")}}
<h2 id="See_also" name="See_also">參考</h2>
diff --git a/files/zh-tw/web/api/document/getelementsbyclassname/index.html b/files/zh-tw/web/api/document/getelementsbyclassname/index.html
index b66647c82d..094ad5899c 100644
--- a/files/zh-tw/web/api/document/getelementsbyclassname/index.html
+++ b/files/zh-tw/web/api/document/getelementsbyclassname/index.html
@@ -72,53 +72,7 @@ var testDivs = Array.prototype.filter.call(testElements, function(testElement){
<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>{{ CompatVersionUnknown() }}</td>
- <td>3.0</td>
- <td>9.0</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>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.getElementsByClassName")}}
<h2 id="Specification" name="Specification">規範</h2>
diff --git a/files/zh-tw/web/api/document/head/index.html b/files/zh-tw/web/api/document/head/index.html
index 7ecde675ea..bded0fe59f 100644
--- a/files/zh-tw/web/api/document/head/index.html
+++ b/files/zh-tw/web/api/document/head/index.html
@@ -55,57 +55,7 @@ alert( document.head === document.querySelector("head") ); // true
<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<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>4.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("2")}}</td>
- <td>9.0</td>
- <td>11.0</td>
- <td>5.0</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("2")}}</td>
- <td>9.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Document.head")}}
<h2 id="參見">參見</h2>
diff --git a/files/zh-tw/web/api/document/queryselector/index.html b/files/zh-tw/web/api/document/queryselector/index.html
index a79edb1c1f..602ee9aa11 100644
--- a/files/zh-tw/web/api/document/queryselector/index.html
+++ b/files/zh-tw/web/api/document/queryselector/index.html
@@ -42,53 +42,8 @@ document.querySelector('#foo\\:bar') // 選到第二個 div
&lt;/script&gt;
</pre>
<h2 id="Browser_Compatibility" name="Browser_Compatibility">瀏覽器相容性</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>基本支援</td>
- <td>1</td>
- <td>3.5 (1.9.1)<br>
- {{bug(416317)}}</td>
- <td>8</td>
- <td>10</td>
- <td>3.2 (525.3)<br>
- {{Webkitbug("16587")}}</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div id="compat-mobile">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>功能特色</th>
- <th>Android</th>
- <th>Firefox 行動版 (Gecko)</th>
- <th>IE 行動版</th>
- <th>Opera 行動版</th>
- <th>Safari 行動版</th>
- </tr>
- <tr>
- <td>基本支援</td>
- <td>2.1</td>
- <td>有</td>
- <td>9</td>
- <td>10.0</td>
- <td>3.2</td>
- </tr>
- </tbody>
- </table>
-</div>
+{{Compat("api.Document.querySelector")}}
+
<h2 id="Specification" name="Specification">規格文件</h2>
<ul>
<li><a class="external" href="http://www.w3.org/TR/selectors-api/" title="http://www.w3.org/TR/selectors-api/">Selectors API</a></li>
diff --git a/files/zh-tw/web/api/document/registerelement/index.html b/files/zh-tw/web/api/document/registerelement/index.html
index 66c3330dca..cae91370dd 100644
--- a/files/zh-tw/web/api/document/registerelement/index.html
+++ b/files/zh-tw/web/api/document/registerelement/index.html
@@ -56,55 +56,7 @@ mytag.textContent = "I am a my-tag element.";
<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>35</td>
- <td>31<sup>[1]</sup></td>
- <td>{{CompatNo}}</td>
- <td>25</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>4.4.4</td>
- <td>31<sup>[1]</sup></td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] This API is implemented behind a preference.</p>
+{{Compat("api.Document.registerElement")}}
<h2 id="也看一下">也看一下</h2>