diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/domimplementation | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/domimplementation')
5 files changed, 559 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/domimplementation/createdocument/index.html b/files/zh-cn/web/api/domimplementation/createdocument/index.html new file mode 100644 index 0000000000..59ccafd853 --- /dev/null +++ b/files/zh-cn/web/api/domimplementation/createdocument/index.html @@ -0,0 +1,83 @@ +--- +title: DOMImplementation.createDocument() +slug: Web/API/DOMImplementation/createDocument +translation_of: Web/API/DOMImplementation/createDocument +--- +<p>{{ApiRef("DOM")}}</p> + +<p><strong><code>DOMImplementation.createDocument()</code>方法创建并返回一个</strong> {{domxref("XMLDocument")}}对象.</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>doc</em> = document.implementation.createDocument(<em>namespaceURI</em>, <em>qualifiedNameStr</em>, <em>documentType</em>);</pre> + +<h3 id="参数">参数</h3> + +<dl> + <dt><em>namespaceURI</em></dt> + <dd>被创建的{{domxref("DOMString")}} 文档的namespace URI 是namespace URI ,如果文档不属于任何namespace URI 就为<code>null</code>.</dd> +</dl> + +<dl> + <dt><em>qualifiedNameStr </em></dt> + <dd> {{domxref("DOMString")}} 是否包含要创建文档的限定名称,即可选的前缀和冒号,以及本地的根元素。</dd> +</dl> + +<dl> + <dt><em>documentType </em>{{optional_inline}}</dt> + <dd>文档的 <code><a class="internal" href="/En/DOM/DocumentType" title="En/DOM/DocumentType">DocumentType</a> </code>默认为null.</dd> +</dl> + +<ul> +</ul> + +<h2 id="例子">例子</h2> + +<pre class="brush: js">var doc = document.implementation.createDocument ('http://www.w3.org/1999/xhtml', 'html', null); +var body = document.createElementNS('http://www.w3.org/1999/xhtml', 'body'); +body.setAttribute('id', 'abc'); +doc.documentElement.appendChild(body); +alert(doc.getElementById('abc')); // [object HTMLBodyElement] +</pre> + +<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', '#dom-domimplementation-createdocument', 'DOMImplementation.createDocument')}}</td> + <td>{{Spec2('DOM WHATWG')}}[现时标准]</td> + <td> + <p>将<code>createDocument()</code> 的返回类型从 {{domxref("Document")}} 修改为{{domxref("XMLDocument")}}.<br> + <code>createDocument()</code>的第三个参数,文档类型,现在是可选的,默认为<code>null</code>.</p> + </td> + </tr> + <tr> + <td>{{SpecName('DOM3 Core', 'core.html#Level-2-Core-DOM-createDocument', 'DOMImplementation.createDocument')}}</td> + <td>{{Spec2('DOM3 Core')}}[过时]</td> + <td>自{{SpecName("DOM2 Core")}}无改变</td> + </tr> + <tr> + <td>{{SpecName('DOM2 Core', 'core.html#Level-2-Core-DOM-createDocument', 'DOMImplementation.createDocument')}}</td> + <td>{{Spec2('DOM2 Core')}}[过时]</td> + <td>初始定义.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器支持">浏览器支持</h2> + +<div class="hidden">本页的兼容性表由结构化数据生成.如果你想对数据做出贡献,请查看 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并发送给我们一个拉取请求.</div> + +<p>{{Compat("api.DOMImplementation.createDocument")}}</p> + +<h2 id="另请参见">另请参见</h2> + +<ul> + <li>归属它的 {{domxref("DOMImplementation")}} 接口.</li> +</ul> diff --git a/files/zh-cn/web/api/domimplementation/createdocumenttype/index.html b/files/zh-cn/web/api/domimplementation/createdocumenttype/index.html new file mode 100644 index 0000000000..13e290d87c --- /dev/null +++ b/files/zh-cn/web/api/domimplementation/createdocumenttype/index.html @@ -0,0 +1,78 @@ +--- +title: DOMImplementation.createDocumentType() +slug: Web/API/DOMImplementation/createDocumentType +tags: + - DOM + - DOMImplementation +translation_of: Web/API/DOMImplementation/createDocumentType +--- +<p>{{ ApiRef("DOM")}}</p> + +<p><strong><code>DOMImplementation.createDocumentType()</code></strong> 方法返回一个 {{domxref("DocumentType")}} 对象,它可以在文档创建时用在 {{domxref("DOMImplementation.createDocument")}} ,或者通过{{domxref("Node.insertBefore()")}} 或 {{domxref("Node.replaceChild()")}} 等方法放在文档中。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox">var <em>doctype</em> = document.implementation.createDocumentType(<em>qualifiedNameStr</em>, <em>publicId</em>, <em>systemId</em>);</pre> + +<h3 id="参数">参数</h3> + +<dl> + <dt><code>qualifiedNameStr</code></dt> + <dd> {{domxref("DOMString")}} 类型的值,包含一个合规的名称,如 <code>svg:svg</code>。</dd> +</dl> + +<dl> + <dt><code>publicId</code></dt> + <dd> {{domxref("DOMString")}} 类型的值, 包含 <code>PUBLIC</code> 标识符。</dd> +</dl> + +<dl> + <dt><code>systemId</code></dt> + <dd> {{domxref("DOMString")}} 类型的值,包含 <code>SYSTEM</code> 标识符。</dd> +</dl> + +<h2 id="示例">示例</h2> + +<pre class="brush: js">var dt = document.implementation.createDocumentType('svg:svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'); +var d = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg:svg', dt); +alert(d.doctype.publicId); // -//W3C//DTD SVG 1.1//EN +</pre> + +<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', '#dom-domimplementation-createdocumenttype', 'DOMImplementation.createDocumentType')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>与 {{SpecName("DOM3 Core")}}相比无改动</td> + </tr> + <tr> + <td>{{SpecName('DOM3 Core', 'core.html#Level-2-Core-DOM-createDocType', 'DOMImplementation.createDocumentType')}}</td> + <td>{{Spec2('DOM3 Core')}}</td> + <td>与 {{SpecName("DOM2 Core")}} 相比无改动</td> + </tr> + <tr> + <td>{{SpecName('DOM2 Core', 'core.html#Level-2-Core-DOM-createDocType', 'DOMImplementation.createDocumentType')}}</td> + <td>{{Spec2('DOM2 Core')}}</td> + <td>初次定义</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div class="hidden">这个页面的兼容性表格是由结构数据生成。如果你想对数据作出贡献,详情请前往 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并给我们一个PR。</div> + +<p>{{Compat("api.DOMImplementation.createDocumentType")}}</p> + +<h2 id="参见">参见</h2> + +<ul> + <li>该方法所属的接口 {{domxref("DOMImplementation")}}</li> +</ul> diff --git a/files/zh-cn/web/api/domimplementation/createhtmldocument/index.html b/files/zh-cn/web/api/domimplementation/createhtmldocument/index.html new file mode 100644 index 0000000000..558f4bad6c --- /dev/null +++ b/files/zh-cn/web/api/domimplementation/createhtmldocument/index.html @@ -0,0 +1,92 @@ +--- +title: DOMImplementation.createHTMLDocument +slug: Web/API/DOMImplementation/createHTMLDocument +translation_of: Web/API/DOMImplementation/createHTMLDocument +--- +<p>{{ApiRef("DOM")}}{{SeeCompatTable}}</p> + +<h3 id="概述">概述</h3> + +<p>该方法 (属于<a class="internal" href="/zh-cn/DOM/document.implementation" title="zh-cn/DOM/Document.implementation"><code>document.implementation</code></a>) 用来创建一个新的HTML文档.</p> + +<h3 id="语法">语法</h3> + +<pre>var doc = document.implementation.createHTMLDocument(title); +</pre> + +<ul> + <li><code>doc</code> 是新建的HTML文档.</li> + <li><code>title</code> 是doc中的title标签中的文本.</li> +</ul> + +<h3 id="例子">例子</h3> + +<p>下面的例子演示如何创建了一个新的HTML文档,并把它插入到当前文档的一个{{ HTMLElement("iframe") }}中.</p> + +<p><a href="/samples/domref/createHTMLDocument.html">查看在线演示</a></p> + +<p>例子中的HTML代码如下:</p> + +<pre class="brush: html"><body> + <p>Click <a href="javascript:makeDocument()">here</a> to create a new document and insert it below.</p> + <iframe id="theFrame" src="about:blank" /> +</body> +</pre> + +<p>例子中用JavaScript实现的<code>makeDocument()</code>方法如下:</p> + +<pre class="brush: js">function makeDocument() { + var frame = document.getElementById("theFrame"); + + var doc = document.implementation.createHTMLDocument("New Document"); + var p = doc.createElement("p"); + p.innerHTML = "This is a new paragraph."; + + try { + doc.body.appendChild(p); + } catch(e) { + console.log(e); + } + + // 将新建的HTML文档放到iframe中. + + var destDocument = frame.contentDocument; + var srcNode = doc.documentElement; + var newNode = destDocument.importNode(srcNode, true); + + destDocument.replaceChild(newNode, destDocument.documentElement); +} +</pre> + +<p>代码 4-12 行创建了一个新的HTML文档,并在里面插入一些内容. 第4行 <code>createHTMLDocument()</code>构造了一个标题为"New Document"的HTML文档. 5-6行创建了一个段落元素并在里面插入了一些内容, 8-12行将新建的段落元素插入到HTML文档中.</p> + +<p>16行获取了iframe的<code>contentDocument</code> 属性.这是我们将要插入新建的HTML文档的地方. 下面的两行将新建的HTML文档插入到了iframe的根元素中.这样,我们用20行代码实现了用一个新建的HTML文档替换iframe中原有文档的目的.</p> + +<h3 id="备注">备注</h3> + +<p>新生成的HTML文档有如下的初始结构:</p> + +<pre class="brush: html"><!doctype html> +<html> +<head> +<title><em>title</em></title> +</head> +<body> +</body> +</html> +</pre> + +<p>译者注:</p> + +<pre>alert(document.implementation.createHTMLDocument("myTitle").documentElement.outerHTML) + +//<html><head><title>myTitle</title></head><body></body></html> +</pre> + +<h3 id="规范">规范</h3> + +<ul> + <li><a class="external" href="http://www.whatwg.org/html/#dom-domhtmlimplementation-createhtmldocument" title="http://www.whatwg.org/html/#dom-domhtmlimplementation-createhtmldocument"><code>createHTMLDocument</code> specification</a></li> +</ul> + +<p>{{ languages( { "en": "en/DOM/DOMImplementation.createHTMLDocument" } ) }}</p> diff --git a/files/zh-cn/web/api/domimplementation/hasfeature/index.html b/files/zh-cn/web/api/domimplementation/hasfeature/index.html new file mode 100644 index 0000000000..daa355c026 --- /dev/null +++ b/files/zh-cn/web/api/domimplementation/hasfeature/index.html @@ -0,0 +1,117 @@ +--- +title: DOMImplementation.hasFeature +slug: Web/API/DOMImplementation/hasFeature +translation_of: Web/API/DOMImplementation/hasFeature +--- +<p>{{ApiRef("DOMImplementation")}}</p> +<p>The <strong><code>DOMImplementation.hasFeature()</code></strong> method returns a {{domxref("Boolean")}} flag indicating if a given feature is supported.</p> +<p>The different implementation fairly diverged in what kind of features was reported. The latest version of the spec settled to force this method to always return <code>true</code>, except for SVG features, where the functionnality was accurate and in use.</p> +<h2 id="Syntax">Syntax</h2> +<pre class="syntaxbox"><em>flag</em> = document.implementation.hasFeature(<em>feature</em>, <em>version</em>);</pre> +<h3 id="Parameters">Parameters</h3> +<dl> + <dt> + <em>feature</em></dt> + <dd> + Is a {{domxref("DOMString")}} representing the feature name.</dd> + <dt> + <em>version</em></dt> + <dd> + Is a {{domxref("DOMString")}} representing the version of the specification defining the feature.</dd> +</dl> +<h2 id="Specifications">Specifications</h2> +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('DOM WHATWG', '#dom-domimplementation-hasfeature', 'DOMImplementation.hasFeature')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>Modified to always return <code>true</code> except for SVG features.</td> + </tr> + <tr> + <td>{{SpecName('DOM3 Core', 'core.html#ID-5CED94D7', 'DOMImplementation.hasFeature')}}</td> + <td>{{Spec2('DOM3 Core')}}</td> + <td>No change from {{SpecName("DOM2 Core")}}</td> + </tr> + <tr> + <td>{{SpecName('DOM2 Core', 'core.html#ID-5CED94D7', 'DOMImplementation.hasFeature')}}</td> + <td>{{Spec2('DOM2 Core')}}</td> + <td>No change from {{SpecName("DOM1")}}</td> + </tr> + <tr> + <td>{{SpecName('DOM1', 'level-one-core.html#ID-5CED94D7', 'DOMImplementation.hasFeature')}}</td> + <td>{{Spec2('DOM2 Core')}}</td> + <td>Initial definition.</td> + </tr> + </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>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoDesktop("1.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td>Always <code>true</code> for non-SVG features.</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoDesktop("19.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 Mobile</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>Always <code>true</code> for non-SVG features.</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoMobile("19.0")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> + </table> +</div> +<h2 id="See_also">See also</h2> +<ul> + <li>The {{domxref("DOMImplementation")}} interface it belongs to.</li> +</ul> diff --git a/files/zh-cn/web/api/domimplementation/index.html b/files/zh-cn/web/api/domimplementation/index.html new file mode 100644 index 0000000000..65cf86e62a --- /dev/null +++ b/files/zh-cn/web/api/domimplementation/index.html @@ -0,0 +1,189 @@ +--- +title: DOMImplementation +slug: Web/API/DOMImplementation +tags: + - API + - DOM + - Interface + - Reference +translation_of: Web/API/DOMImplementation +--- +<p>{{ ApiRef("DOM") }}</p> + +<p><code style="font-style: normal; line-height: 1.5;"><strong>DOMImplementation</strong></code><span style="line-height: 1.5;"> 接口代表了一个对象,这个对象提供了不依赖于任何document的方法。这个对象可以通过{{domxref("Document.implementation")}}属性获得</span></p> + +<h2 id="属性">属性</h2> + +<p><em>这个接口没有特定的属性,并且也没有继承到任何属性。</em></p> + +<h2 id="方法">方法</h2> + +<p><em>没有继承的方法</em></p> + +<dl> + <dt>{{domxref("DOMImplementation.createDocument()")}}</dt> + <dd>创建并返回一个 {{domxref("XMLDocument")}}对象.</dd> + <dt>{{domxref("DOMImplementation.createDocumentType()")}}</dt> + <dd>创建并返回一个 {{domxref("DocumentType")}}对象.</dd> + <dt>{{domxref("DOMImplementation.createHTMLDocument()")}}</dt> + <dd>创建并返回一个 {{domxref("Document")}}对象.</dd> + <dt>{{domxref("DOMImplementation.hasFeature()")}}</dt> + <dd>返回一个是否支持所给定特性的{{domxref("Boolean")}}值。这个方法是不可靠的,仅用于兼容性目的:除了SVG相关的查询,它总是返回 <code>true</code>。旧浏览器的行为非常不一致</dd> + <dd>Returns a {{domxref("Boolean")}} indicating if a given feature is supported or not. This function is unreliable and kept for compatibility purpose alone: except for SVG-related queries, it always returns <code>true</code>. Old browsers are very inconsistent in their behavior.</dd> +</dl> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('DOM WHATWG', '#domimplementation', 'DOMImplementation')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>Removed the <code>getFeature()</code> method.<br> + Added the <code>createHTMLDocument()</code> method.<br> + Modified the return type of <code>createDocument()</code> from {{domxref("Document")}} to {{domxref("XMLDocument")}}.</td> + </tr> + <tr> + <td>{{SpecName('DOM3 Core', 'core.html#ID-102161490', 'DOMImplementation')}}</td> + <td>{{Spec2('DOM3 Core')}}</td> + <td>Added the <code>getFeature()</code> method (never implemented by any user agent).</td> + </tr> + <tr> + <td>{{SpecName('DOM2 Core', 'core.html#ID-102161490', 'DOMImplementation')}}</td> + <td>{{Spec2('DOM2 Core')}}</td> + <td>Added the <code>createDocument()</code> and <code>createDocumentType()</code> methods.</td> + </tr> + <tr> + <td>{{SpecName('DOM1', 'level-one-core.html#ID-102161490', 'DOMImplementation')}}</td> + <td>{{Spec2('DOM1')}}</td> + <td>Initial definition.</td> + </tr> + </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</td> + <td>{{CompatGeckoDesktop("1.0")}}</td> + <td>6.0</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createHTMLDocument()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoDesktop("2.0")}}</td> + <td>9.0</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createDocument()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoDesktop("1.0")}}</td> + <td>9.0</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>hasFeature()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoDesktop("1.0")}} [1]</td> + <td>6.0</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createDocumentType()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoDesktop("1.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>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createHTMLDocument()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoMobile("2.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createDocument()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>hasFeature()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + <tr> + <td><code>createDocumentType()</code></td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<p>[1] Since Gecko 19, <code>hasFeature()</code> mostly returns <code>true</code>.</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li><a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">The DOM interfaces index.</a></li> +</ul> |