Mozilla.com

  1. MDC
  2. 首页
  3. DOM
  4. document.implementation
内容表格
  1. 1. 摘要
  2. 2. 语法
  3. 3. 示例
  4. 4. 注释
  5. 5. 参考
内容表格
  1. 1. 摘要
  2. 2. 语法
  3. 3. 示例
  4. 4. 注释
  5. 5. 参考

« Gecko DOM 参考

摘要

Returns a DOMImplementation object associated with the current document.

语法

DOMImpObj = document.DOMImplementation

示例

var modName = "HTML";
var modVer = "2.0";
var conformTest = document.implementation.hasFeature(modName, modVer);

alert("DOM " + modName + " " + modVer + " supported?: " + conformTest);

// alerts with: "DOM HTML 2.0 supported?: true" if DOM Level 2 HTML module is supported.

A list of module names (e.g., Core, HTML, XML, etc) is available in the DOM Level 2 Conformance Section

注释

If available, DOMImplementation is a special object that provides services for controlling things outside of a single document. For example, the DOMImplementation interface includes a createDocumentType method with which DTDs can be created for one or more documents managed by the implementation.

Languages

Page last modified 06:28, 12 Apr 2007 by Emcc?

文件 (0)