aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/element/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/api/element/index.html')
-rw-r--r--files/zh-tw/web/api/element/index.html363
1 files changed, 1 insertions, 362 deletions
diff --git a/files/zh-tw/web/api/element/index.html b/files/zh-tw/web/api/element/index.html
index d363baeead..6d1ea67732 100644
--- a/files/zh-tw/web/api/element/index.html
+++ b/files/zh-tw/web/api/element/index.html
@@ -310,365 +310,4 @@ translation_of: Web/API/Element
<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 (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>1.0</td>
- </tr>
- <tr>
- <td><code>children</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>7.0 with a significant bug [1]<br>
- 9.0 according to the spec</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>childElementCount</code>, <code>nextElementSibling</code>, <code>previousElementSibling</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>9.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>firstElementChild</code>, <code>lastElementChild</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>9.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>classList</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.2")}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>outerHTML</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("11")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>clientLeft</code>, <code>clientTop</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>getBoundingClientRect()</code>, <code>getClientRects()</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>querySelector()</code>, <code>querySelectorAll()</code></td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>8.0</td>
- <td>10.0</td>
- <td>3.2 (525.3)</td>
- </tr>
- <tr>
- <td><code>insertAdjacentHTML()</code> {{experimental_inline}}</td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("8")}}</td>
- <td>4.0</td>
- <td>7.0</td>
- <td>4.0 (527)</td>
- </tr>
- <tr>
- <td><code>setCapture() </code>{{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("2")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>oncopy</code>, <code>oncut</code>, <code>onpaste</code> {{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>onwheel</code> {{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("17")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>ongotpointercapture</code>, <code>onlostpointercapture</code>, <code>setPointerCapture()</code>, and <code>releasePointerCapture()</code></td>
- <td>{{CompatChrome(52.0)}} [4]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}} <sup>[3]</sup></td>
- <td>10.0</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>matches()</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}} with the non-standard name <code>webkitMatchesSelector</code></td>
- <td>{{CompatVersionUnknown}} {{property_prefix("webkit")}} {{property_prefix("ms")}}</td>
- <td>{{CompatGeckoDesktop("1.9.2")}} with the non-standard name <code>mozMatchesSelector</code><br>
- {{CompatGeckoDesktop("34")}} with the standard name</td>
- <td>9.0 with the non-standard name <code>msMatchesSelector</code></td>
- <td>11.5 with the non-standard name <code>oMatchesSelector</code><br>
- 15.0 with the non-standard name <code>webkitMatchesSelector</code></td>
- <td>5.0 with the non-standard name <code>webkitMatchesSelector</code></td>
- </tr>
- <tr>
- <td><code>find()</code> and <code>findAll()</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>requestPointerLock()</code></td>
- <td>16.0 {{property_prefix("webkit")}}, behind an about:flags<br>
- 22.0 {{property_prefix("webkit")}} (with special cases, progressively lifted see [2])</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("14")}}{{property_prefix("moz")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>requestFullscreen()</code></td>
- <td>14.0 {{property_prefix("webkit")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("10")}} {{property_prefix("moz")}}</td>
- <td>11.0 {{property_prefix("ms")}}</td>
- <td>12.10<br>
- 15.0 {{property_prefix("webkit")}}</td>
- <td>5.1 {{property_prefix("webkit")}}</td>
- </tr>
- <tr>
- <td><code>undoManager</code> and <code>undoScope</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}} (behind the <code>dom.undo_manager.enabled</code> pref)</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>attributes</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("22")}}<br>
- Before this it was available via the {{domxref("Node")}} interface that any <code>element</code> inherits.</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>scrollTopMax()</code> and <code>scrollLeftMax()</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("16")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>closest()</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("35")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>hasAttributes()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("1.0")}} (on the {{domxref("Node")}} interface)<br>
- {{CompatGeckoDesktop("35")}} (on this interface</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>insertAdjacentElement()</code>, <code>insertAdjacentText()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("48.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>assignedSlot</code>, <code>attatchShadow</code>, <code>shadowRoot</code>, and <code>slot</code></td>
- <td>{{CompatChrome(53)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>computedRole</code> and <code>computedName</code></td>
- <td>{{CompatChrome(41)}}[4]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>28[4]</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>1.0</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>1.0</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>scrollTopMax()</code> and <code>scrollLeftMax()</code></td>
- <td>{{CompatNo}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("16")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>closest()</code></td>
- <td>{{CompatUnknown}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("35")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>hasAttributes()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("1.0")}} (on the {{domxref("Node")}} interface)<br>
- {{CompatGeckoMobile("35")}} (on this interface</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>insertAdjacentElement()</code>, <code>insertAdjacentText()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("48.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>assignedSlot</code>, <code>attatchShadow</code>, <code>shadowRoot</code>, and <code>slot</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(53.0)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(53)}}</td>
- </tr>
- <tr>
- <td><code>computedRole</code> and <code>computedName</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>28[4]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Internet Explorer 7 and 8 incorrectly return the comments as part of the children of an Element. This is fixed in Internet Explorer 9 and later.</p>
-
-<p>[2] Chrome 16 allowed <code>webkitRequestPointerLock()</code> only in fullscreen; Chrome 21 for trusted web site (permission asked); Chrome 22 allowed it by default for all same-origin document; Chrome 23 allowed it in sandboxed {{HTMLElement("iframe")}} if the non-standard value <code>webkit-allow-pointer-lock</code> is set to the {{htmlattrxref("sandbox", "iframe")}} attribute.</p>
-
-<p>[3] Implementation withdrawn. See {{Bug("1166347")}}.</p>
-
-<p>[4] Behind a flag.</p>
+{{Compat("api.Element")}}