diff options
Diffstat (limited to 'files/zh-cn/web/api/htmlanchorelement')
10 files changed, 10 insertions, 594 deletions
diff --git a/files/zh-cn/web/api/htmlanchorelement/hash/index.html b/files/zh-cn/web/api/htmlanchorelement/hash/index.html index 257a572947..e60e1f5e42 100644 --- a/files/zh-cn/web/api/htmlanchorelement/hash/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/hash/index.html @@ -43,65 +43,7 @@ var result = anchor.hash; // Returns:'#youhou'</pre> <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("22")}}<sup>[3]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("22")}}<sup>[3]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - <td>{{CompatNo}}<sup>[2]</sup></td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] Though not grouped in a single abstract interface, this method is directly available on the interfaces that implement it, if this interface is supported.</p> - -<p>[3] From Gecko 22 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface. Also, from Gecko 29 to Gecko 40, the returned value was incorrectly percent-decoded.</p> +{{Compat("api.HTMLAnchorElement.hash")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/href/index.html b/files/zh-cn/web/api/htmlanchorelement/href/index.html index 7992047bcd..e344bc122a 100644 --- a/files/zh-cn/web/api/htmlanchorelement/href/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/href/index.html @@ -42,65 +42,7 @@ var result = anchor.href; // Returns: 'https://developer.mozilla.org/en-US/HTMLH <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("22")}} [3]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("22")}} [3]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] Though not grouped in a single abstract interface, this method is directly available on the interfaces that implement it, if this interface is supported.</p> - -<p>[3] From Gecko 22 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moved either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> +{{Compat("api.HTMLAnchorElement.href")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/index.html b/files/zh-cn/web/api/htmlanchorelement/index.html index a5e8a72584..d1883c1614 100644 --- a/files/zh-cn/web/api/htmlanchorelement/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/index.html @@ -118,85 +118,7 @@ translation_of: Web/API/HTMLAnchorElement <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>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop(1.0)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td><code>download</code></td> - <td>14</td> - <td>20</td> - <td>{{CompatUnknown}}</td> - <td>15</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td><code>username</code>, <code>password</code>, and <code>origin</code></td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop("26.0")}}</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>Firefox Mobile (Gecko)</th> - <th>IE Phone</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile(1.0)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - <tr> - <td><code>download</code></td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td><code>username</code>, <code>password</code>, and <code>origin</code></td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile("26.0")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.HTMLAnchorElement")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/origin/index.html b/files/zh-cn/web/api/htmlanchorelement/origin/index.html index 715815c0a0..8796c5532a 100644 --- a/files/zh-cn/web/api/htmlanchorelement/origin/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/origin/index.html @@ -48,67 +48,7 @@ var result = window.location.origin; // Returns:'https://developer.mozilla.org' <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("26.0")}}<sup> [3][4]</sup></td> - <td>{{CompatNo}} [2]</td> - <td><span style="font-size: 12px; line-height: 16.3636360168457px;">{{CompatNo}}</span> [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("26.0")}}<sup> [3][4]</sup></td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] Though not grouped in a single abstract interface, this method is directly available on the interfaces that implement it, if this interface is supported.</p> - -<p>[3] From Gecko 26 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> - -<p>[4] Before Gecko 49, results for URL using the <code>blob</code> scheme incorrectly returned <code>null</code>.</p> +{{Compat("api.HTMLAnchorElement.origin")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/password/index.html b/files/zh-cn/web/api/htmlanchorelement/password/index.html index 7f7160aedb..c45c9df9a8 100644 --- a/files/zh-cn/web/api/htmlanchorelement/password/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/password/index.html @@ -44,59 +44,7 @@ var result = anchor.password; // Returns:'flabada' <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatGeckoDesktop("26")}} [2]</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatGeckoMobile("26")}} [2]</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] From Gecko 26 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> +{{Compat("api.HTMLAnchorElement.password")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/pathname/index.html b/files/zh-cn/web/api/htmlanchorelement/pathname/index.html index 86ccbfe78c..5e77c6e9d9 100644 --- a/files/zh-cn/web/api/htmlanchorelement/pathname/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/pathname/index.html @@ -42,67 +42,7 @@ var result = anchor.pathname; // Returns:'/en-US/docs/HTMLHyperlinkElementUtils. <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatGeckoDesktop("22")}} [3][4]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatGeckoMobile("22")}} [3][4]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - <td>{{CompatNo}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] Though not grouped in a single abstract interface, this method is directly available on the interfaces that implement it, if this interface is supported.</p> - -<p>[3] From Gecko 22 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> - -<p>[4] Before Firefox 53, the <code>pathname</code> and <code>search</code> <code>HTMLHyperLinkElementUtils</code> properties returned the wrong parts of the URL. For example, for a URL of <code>http://z.com/x?a=true&b=false</code>, <code>pathname</code> would return "<code>/x?a=true&b=false"</code> and <code>search</code> would return "", rather than "<code>/x</code>" and "<code>?a=true&b=false"</code> respectively. This has now been fixed.</p> +{{Compat("api.HTMLAnchorElement.pathname")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/referrerpolicy/index.html b/files/zh-cn/web/api/htmlanchorelement/referrerpolicy/index.html index a4ed4b000d..0baf12895f 100644 --- a/files/zh-cn/web/api/htmlanchorelement/referrerpolicy/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/referrerpolicy/index.html @@ -58,57 +58,7 @@ div.appendChild(elt); // 点击该链接接时不会发送 Referer 请求头 <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> -<div>{{CompatibilityTable}} -<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>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop("42.0")}} [1]</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>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>{{CompatGeckoMobile("42.0")}} [1]</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] 该特性目前默认为关闭状态,请通过将 <code>network.http.enablePerElementReferrer</code> 选项设置为 <code>true</code> 来开启。</p> -</div> +{{Compat("api.HTMLAnchorElement.referrerPolicy")}} <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/search/index.html b/files/zh-cn/web/api/htmlanchorelement/search/index.html index 67b868a075..50e5520141 100644 --- a/files/zh-cn/web/api/htmlanchorelement/search/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/search/index.html @@ -48,67 +48,7 @@ let result = anchor.search; <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>基本支持</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("22")}} [3][4]</td> - <td>{{CompatVersionUnknown}} [2]</td> - <td>{{CompatVersionUnknown}} [2]</td> - <td>{{CompatVersionUnknown}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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>基本支持</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("22")}} [3][4]</td> - <td>{{CompatVersionUnknown}} [2]</td> - <td>{{CompatVersionUnknown}} [2]</td> - <td>{{CompatVersionUnknown}} [2]</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] 自Chrome 52起,该属性移至{{domxref('URL')}}</p> - -<p>[2] 虽然没有被分在一个独立的抽象接口,但该方法可以在实现了它的那些接口上直接使用,如果支持该接口。</p> - -<p>[3] 从Gecko 22 到 Gecko 44,该属性在 <code>URLUtils</code> mixin 上。它已经被移到 <code>HTMLHyperlinkElementUtils</code> mixin,或者直接在这个接口上。</p> - -<p>[4] 在 Firefox 53之前, <code>pathname</code> 和<code> search</code> <code>HTMLHyperLinkElementUtils</code> 属性返回的URL部分是错误的。例如,对一个值为 <code>http://z.com/x?a=true&b=false</code> 的URL,<code>pathname</code> 会返回"<code>/x?a=true&b=false"</code> <code>,search</code> 会返回 "", 而不是各自返回 "<code>/x</code>" 和"<code>?a=true&b=false"</code> 。这已经被修正了。</p> +{{Compat("api.HTMLAnchorElement.search")}} <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/tostring/index.html b/files/zh-cn/web/api/htmlanchorelement/tostring/index.html index 3504debe75..f58da58175 100644 --- a/files/zh-cn/web/api/htmlanchorelement/tostring/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/tostring/index.html @@ -46,63 +46,7 @@ var result = anchor.toString(); <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>{{CompatChrome(52)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("22")}} [2]</td> - <td>{{CompatNo}} [1]</td> - <td>{{CompatNo}} [1]</td> - <td>{{CompatNo}} [1]</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for 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>{{CompatChrome(52)}}</td> - <td>{{CompatChrome(52)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile("22")}} [2]</td> - <td>{{CompatNo}} [1]</td> - <td>{{CompatNo}} [1]</td> - <td>{{CompatNo}} [1]</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Though not grouped in a single abstract interface, this method is directly available on the interfaces that implement it, if this interface is supported.</p> - -<p>[2] From Gecko 22 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> +{{Compat("api.HTMLAnchorElement.toString")}} <h2 id="也可以看看">也可以看看</h2> diff --git a/files/zh-cn/web/api/htmlanchorelement/username/index.html b/files/zh-cn/web/api/htmlanchorelement/username/index.html index e5efbcc828..a49bfb6e9b 100644 --- a/files/zh-cn/web/api/htmlanchorelement/username/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/username/index.html @@ -42,59 +42,7 @@ var result = anchor.username; // Returns:'anonymous' <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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatGeckoDesktop("26")}} [2]</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</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>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatVersionUnknown}} [1]</td> - <td>{{CompatGeckoMobile("26")}} [2]</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Starting in Chrome 52, this property was moved to {{domxref('URL')}}</p> - -<p>[2] From Gecko 26 to Gecko 44, this property was on the <code>URLUtils</code> mixin. It has been moves either on the <code>HTMLHyperlinkElementUtils</code> mixin, or directly on the interface.</p> +{{Compat("api.HTMLAnchorElement.username")}} <h2 id="See_also">See also</h2> |