Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

SVG tests interface

Interface SVGTests defines an interface which applies to all elements which have attributes requiredFeatures, requiredExtensions and systemLanguage.

Interface overview

Also implement None
Methods
  • boolean hasExtension(in DOMString extension)
Properties
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
requiredFeatures SVGStringList Corresponds to attribute requiredFeatures on the given element.
requiredExtensions SVGStringList Corresponds to attribute requiredExtensions on the given element.
systemLanguage SVGStringList Corresponds to attribute systemLanguage on the given element.

Methods

Name & Arguments Return Description
hasExtension(in DOMString extension) boolean Returns true if the browser supports the given extension, specified by a URI.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) [1] 12 (12) 9.0 ? ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support Not supported (Yes) [1] 12.0 (12) ? ? ? (Yes) [1]

[1] The hasExtension() method was removed in Chrome 47 because it is not part of the SVG2 spec.

文档标签和贡献者

 此页面的贡献者: jpmedley, fscholz, kscarfone, Sheppy, kohei.yoshino, Jeremie, Longsonr
 最后编辑者: jpmedley,