Our volunteers haven't translated this article into Français yet. Join us and help get the job done!
You can also read the article in English (US).

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
  • boolean hasExtension(in DOMString extension)
Normative document SVG 1.1 (2nd Edition)


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.


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 Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) [1] (Yes) 12 (12) 9.0 ? ?
Feature Android Android Webview Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support (Yes) [1] (Yes) 12.0 (12) ? ? ? (Yes) [1]

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

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : mattwojo, jpmedley, fscholz, kscarfone, Sheppy, kohei.yoshino, Jeremie, Longsonr
 Dernière mise à jour par : mattwojo,