diff options
Diffstat (limited to 'files/zh-cn/web/api')
-rw-r--r-- | files/zh-cn/web/api/document/activeelement/index.html (renamed from files/zh-cn/web/api/documentorshadowroot/activeelement/index.html) | 3 | ||||
-rw-r--r-- | files/zh-cn/web/api/element/nextelementsibling/index.html (renamed from files/zh-cn/web/api/nondocumenttypechildnode/nextelementsibling/index.html) | 3 | ||||
-rw-r--r-- | files/zh-cn/web/api/element/previouselementsibling/index.html (renamed from files/zh-cn/web/api/nondocumenttypechildnode/previouselementsibling/index.html) | 3 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/hash/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/hash/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/href/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/href/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/origin/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/origin/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/password/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/password/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/pathname/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/pathname/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/search/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/search/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/tostring/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/tostring/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlanchorelement/username/index.html (renamed from files/zh-cn/web/api/htmlhyperlinkelementutils/username/index.html) | 4 | ||||
-rw-r--r-- | files/zh-cn/web/api/htmlhyperlinkelementutils/index.html | 84 | ||||
-rw-r--r-- | files/zh-cn/web/api/nondocumenttypechildnode/index.html | 69 |
13 files changed, 22 insertions, 172 deletions
diff --git a/files/zh-cn/web/api/documentorshadowroot/activeelement/index.html b/files/zh-cn/web/api/document/activeelement/index.html index 90b67fbf5c..b4dcc12e11 100644 --- a/files/zh-cn/web/api/documentorshadowroot/activeelement/index.html +++ b/files/zh-cn/web/api/document/activeelement/index.html @@ -1,7 +1,8 @@ --- title: DocumentOrShadowRoot.activeElement -slug: Web/API/DocumentOrShadowRoot/activeElement +slug: Web/API/Document/activeElement translation_of: Web/API/DocumentOrShadowRoot/activeElement +original_slug: Web/API/DocumentOrShadowRoot/activeElement --- <div>{{APIRef("Shadow DOM")}}</div> diff --git a/files/zh-cn/web/api/nondocumenttypechildnode/nextelementsibling/index.html b/files/zh-cn/web/api/element/nextelementsibling/index.html index a39fd29558..e78b27fe7a 100644 --- a/files/zh-cn/web/api/nondocumenttypechildnode/nextelementsibling/index.html +++ b/files/zh-cn/web/api/element/nextelementsibling/index.html @@ -1,7 +1,8 @@ --- title: NonDocumentTypeChildNode.nextElementSibling -slug: Web/API/NonDocumentTypeChildNode/nextElementSibling +slug: Web/API/Element/nextElementSibling translation_of: Web/API/NonDocumentTypeChildNode/nextElementSibling +original_slug: Web/API/NonDocumentTypeChildNode/nextElementSibling --- <p>{{ gecko_minversion_header("1.9.1") }}</p> diff --git a/files/zh-cn/web/api/nondocumenttypechildnode/previouselementsibling/index.html b/files/zh-cn/web/api/element/previouselementsibling/index.html index 8c78a68adf..a28170c2bb 100644 --- a/files/zh-cn/web/api/nondocumenttypechildnode/previouselementsibling/index.html +++ b/files/zh-cn/web/api/element/previouselementsibling/index.html @@ -1,7 +1,8 @@ --- title: NonDocumentTypeChildNode.previousElementSibling -slug: Web/API/NonDocumentTypeChildNode/previousElementSibling +slug: Web/API/Element/previousElementSibling translation_of: Web/API/NonDocumentTypeChildNode/previousElementSibling +original_slug: Web/API/NonDocumentTypeChildNode/previousElementSibling --- <p>{{ ApiRef() }}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/hash/index.html b/files/zh-cn/web/api/htmlanchorelement/hash/index.html index afb17d505e..5f9305da09 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/hash/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/hash/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.hash -slug: Web/API/HTMLHyperlinkElementUtils/hash +slug: Web/API/HTMLAnchorElement/hash tags: - HTMLHyperlinkElementUtils.hash translation_of: Web/API/HTMLHyperlinkElementUtils/hash -original_slug: Web/API/URLUtils/hash +original_slug: Web/API/HTMLHyperlinkElementUtils/hash --- <p>{{ APIRef("URLUtils") }}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/href/index.html b/files/zh-cn/web/api/htmlanchorelement/href/index.html index dd9cbd64f3..7992047bcd 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/href/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/href/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.href -slug: Web/API/HTMLHyperlinkElementUtils/href +slug: Web/API/HTMLAnchorElement/href tags: - HTMLHyperlinkElementUtils.href translation_of: Web/API/HTMLHyperlinkElementUtils/href -original_slug: Web/API/URLUtils/href +original_slug: Web/API/HTMLHyperlinkElementUtils/href --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/origin/index.html b/files/zh-cn/web/api/htmlanchorelement/origin/index.html index 6b1eb90cda..715815c0a0 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/origin/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/origin/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.origin -slug: Web/API/HTMLHyperlinkElementUtils/origin +slug: Web/API/HTMLAnchorElement/origin tags: - HTMLHyperlinkElementUtils.origin translation_of: Web/API/HTMLHyperlinkElementUtils/origin -original_slug: Web/API/URLUtils/origin +original_slug: Web/API/HTMLHyperlinkElementUtils/origin --- <p>{{APIRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/password/index.html b/files/zh-cn/web/api/htmlanchorelement/password/index.html index 0358323ce9..7f7160aedb 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/password/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/password/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.password -slug: Web/API/HTMLHyperlinkElementUtils/password +slug: Web/API/HTMLAnchorElement/password tags: - HTMLHyperlinkElementUtils.password translation_of: Web/API/HTMLHyperlinkElementUtils/password -original_slug: Web/API/URLUtils/password +original_slug: Web/API/HTMLHyperlinkElementUtils/password --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/pathname/index.html b/files/zh-cn/web/api/htmlanchorelement/pathname/index.html index 95ceda3636..86ccbfe78c 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/pathname/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/pathname/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.pathname -slug: Web/API/HTMLHyperlinkElementUtils/pathname +slug: Web/API/HTMLAnchorElement/pathname tags: - HTMLHyperlinkElementUtils.pathname translation_of: Web/API/HTMLHyperlinkElementUtils/pathname -original_slug: Web/API/URLUtils/pathname +original_slug: Web/API/HTMLHyperlinkElementUtils/pathname --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/search/index.html b/files/zh-cn/web/api/htmlanchorelement/search/index.html index 1fc142cc1f..67b868a075 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/search/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/search/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.search -slug: Web/API/HTMLHyperlinkElementUtils/search +slug: Web/API/HTMLAnchorElement/search tags: - HTMLHyperlinkElementUtils.search translation_of: Web/API/HTMLHyperlinkElementUtils/search -original_slug: Web/API/URLUtils/search +original_slug: Web/API/HTMLHyperlinkElementUtils/search --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/tostring/index.html b/files/zh-cn/web/api/htmlanchorelement/tostring/index.html index 1bffe5100b..3504debe75 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/tostring/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/tostring/index.html @@ -1,11 +1,11 @@ --- title: HTMLHyperlinkElementUtils.toString() -slug: Web/API/HTMLHyperlinkElementUtils/toString +slug: Web/API/HTMLAnchorElement/toString tags: - HTMLHyperlinkElementUtils.toString() - URL API translation_of: Web/API/HTMLHyperlinkElementUtils/toString -original_slug: Web/API/URLUtils/toString +original_slug: Web/API/HTMLHyperlinkElementUtils/toString --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/username/index.html b/files/zh-cn/web/api/htmlanchorelement/username/index.html index f7a9df9f66..e5efbcc828 100644 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/username/index.html +++ b/files/zh-cn/web/api/htmlanchorelement/username/index.html @@ -1,10 +1,10 @@ --- title: HTMLHyperlinkElementUtils.username -slug: Web/API/HTMLHyperlinkElementUtils/username +slug: Web/API/HTMLAnchorElement/username tags: - HTMLHyperlinkElementUtils.username translation_of: Web/API/HTMLHyperlinkElementUtils/username -original_slug: Web/API/URLUtils/username +original_slug: Web/API/HTMLHyperlinkElementUtils/username --- <p>{{ApiRef("URL API")}}</p> diff --git a/files/zh-cn/web/api/htmlhyperlinkelementutils/index.html b/files/zh-cn/web/api/htmlhyperlinkelementutils/index.html deleted file mode 100644 index d6d93674e3..0000000000 --- a/files/zh-cn/web/api/htmlhyperlinkelementutils/index.html +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: URLUtils -slug: Web/API/HTMLHyperlinkElementUtils -translation_of: Web/API/HTMLHyperlinkElementUtils -original_slug: Web/API/URLUtils ---- -<p>{{ApiRef("URL API")}}{{SeeCompatTable}}</p> - -<p>The <strong><code>HTMLHyperlinkElementUtils</code></strong> mixin defines utility methods and properties to work with {{domxref("HTMLAnchorElement")}} and {{domxref("HTMLAreaElement")}}. These utilities allow to deal with common features like URLs.</p> - -<p>There are no objects of this type, but several objects {{domxref("HTMLAnchorElement")}} and {{domxref("HTMLAreaElement")}} implement it.</p> - -<h2 id="属性">属性</h2> - -<div class="note"> -<p><strong>注意:</strong>This interface doesn't inherit any property.</p> -</div> - -<dl> - <dt>{{domxref("HTMLHyperlinkElementUtils.href")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the whole URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.protocol")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the protocol scheme of the URL, including the final <code>':'</code>.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.host")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the host, that is the <em>hostname</em>, and then, if the <em>port</em> of the URL is not empty (which can happen because it was not specified or because it was specified to be the default port of the URL's scheme), a <code>':'</code>, and the <em>port</em> of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.hostname")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the domain of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.port")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the port number of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.pathname")}}</dt> - <dd>This is a {{domxref("USVString")}} containing an initial <code>'/'</code> followed by the path of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.search")}}</dt> - <dd>This is a {{domxref("USVString")}} containing a <code>'?'</code> followed by the parameters of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.hash")}}</dt> - <dd>This is a {{domxref("USVString")}} containing a <code>'#'</code> followed by the fragment identifier of the URL.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.username")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the username specified before the domain name.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.password")}}</dt> - <dd>This is a {{domxref("USVString")}} containing the password specified before the domain name.</dd> - <dt>{{domxref("HTMLHyperlinkElementUtils.origin")}} {{readonlyInline}}</dt> - <dd>This returns a {{domxref("USVString")}} containing the origin of the URL (that is its scheme, its domain and its port).</dd> -</dl> - -<h2 id="方法">方法</h2> - -<div class="note"> -<p><strong>注意:</strong>This interface doesn't inherit any method.</p> -</div> - -<dl> - <dt>{{domxref("HTMLHyperlinkElementUtils.toString()")}}</dt> - <dd>This returns a {{domxref("USVString")}} containing the whole URL. It is a synonym for {{domxref("HTMLHyperlinkElementUtils.href")}}, though it can't be used to modify the value.</dd> -</dl> - -<h2 id="规范">规范</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">规范</th> - <th scope="col">状态</th> - <th scope="col">备注</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('HTML WHATWG', '#htmlhyperlinkelementutils', 'HTMLHyperlinkElementUtils')}}</td> - <td>{{Spec2('HTML WHATWG')}}</td> - <td>Initial definition</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - - - -<p>{{Compat("api.HTMLHyperlinkElementUtils")}}</p> - -<h2 id="参见">参见</h2> - -<ul> - <li>Interfaces implementing this one: {{domxref("HTMLAnchorElement")}}, {{domxref("HTMLAreaElement")}}</li> -</ul> diff --git a/files/zh-cn/web/api/nondocumenttypechildnode/index.html b/files/zh-cn/web/api/nondocumenttypechildnode/index.html deleted file mode 100644 index bdaccbe5fd..0000000000 --- a/files/zh-cn/web/api/nondocumenttypechildnode/index.html +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: NonDocumentTypeChildNode -slug: Web/API/NonDocumentTypeChildNode -tags: - - API - - DOM - - NonDocumentTypeChildNode - - 参考 - - 接口 -translation_of: Web/API/NonDocumentTypeChildNode ---- -<div>{{APIRef("DOM")}}</div> - -<p><code><strong>NonDocumentTypeChildNode</strong></code> 接口包含专属于某些(特殊) {{domxref("Node")}} 对象的方法,这些对象可以拥有父对象,但不适用于 {{domxref("DocumentType")}} 接口。</p> - -<p><code>NonDocumentTypeChildNode</code> 是一个裸接口(raw interface),无法创建拥有此类型的对象;它是由 {{domxref("Element")}},和 {{domxref("CharacterData")}} 对象实现的。</p> - -<h2 id="属性">属性</h2> - -<p class="syntaxbox"><em>此接口没有继承属性。</em></p> - -<dl> - <dt>{{domxref("NonDocumentTypeChildNode.previousElementSibling")}} {{readonlyInline}}</dt> - <dd>Returns the {{domxref("Element")}} immediately prior to this node in its parent's children list, or <code>null</code> if there is no {{domxref("Element")}} in the list prior to this node.</dd> - <dt>{{domxref("NonDocumentTypeChildNode.nextElementSibling")}} {{readonlyInline}}</dt> - <dd>Returns the {{domxref("Element")}} immediately following this node in its parent's children list, or <code>null</code> if there is no {{domxref("Element")}} in the list following this node.</dd> -</dl> - -<h2 id="方法">方法</h2> - -<p class="syntaxbox"><em>此接口既没有继承方法,又没有专有方法。</em></p> - -<h2 id="规范">规范</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">规范</th> - <th scope="col">状态</th> - <th scope="col">备注</th> - </tr> - <tr> - <td>{{SpecName('DOM WHATWG', '#interface-childnode', 'NonDocumentTypeChildNode')}}</td> - <td>{{Spec2('DOM WHATWG')}}</td> - <td>Splitted the <code>ElementTraversal</code> interface in {{domxref("ParentNode")}}, {{domxref("ChildNode")}}, and <code>NonDocumentTypeChildNode</code>. The <code>previousElementSibling</code> and <code>nextElementSibling</code> are now defined on the latter.<br> - The {{domxref("CharacterData")}} and {{domxref("Element")}} implemented the new interfaces.</td> - </tr> - <tr> - <td>{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}</td> - <td>{{Spec2('Element Traversal')}}</td> - <td>Added the initial definition of its properties to the <code>ElementTraversal</code> pure interface and use it on {{domxref("Element")}}.</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - - - -<p>{{Compat("api.NonDocumentTypeChildNode")}}</p> - -<h2 id="参见">参见</h2> - -<ul> - <li>The {{domxref("ParentNode")}} and {{domxref("ChildNode")}} pure interface.</li> - <li> - <div class="syntaxbox">Object types implementing this pure interface: {{domxref("CharacterData")}}, and {{domxref("Element")}}.</div> - </li> -</ul> |