The SVGTests
interface is used to reflect conditional processing attributes and is mixed into other interfaces for elements that support these attributes.
Properties
SVGTests.requiredFeatures
Read only- An
SVGStringList
corresponding to therequiredFeatures
attribute of the given element. SVGTests.requiredExtensions
Read only- An
SVGStringList
corresponding to therequiredExtensions
attribute of the given element. SVGTests.systemLanguage
Read only- An
SVGStringList
corresponding to thesystemLanguage
attribute of the given element.
Methods
SVGTests.hasExtension()
Read only- Returns
true
if the browser supports the given extension, specified by a URI.
Specifications
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2 The definition of 'SVGTests' in that specification. |
Candidate Recommendation | Removed requiredFeatures property and hasExtension() method. |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'SVGTests' in that specification. |
Recommendation | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
SVGTests | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 12 | IE Full support 9 | Opera ? | Safari ? | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support Yes |
hasextension | Chrome
No support
? — 47
| Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android
No support
? — 47
| Chrome Android
No support
? — 47
| Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android
No support
? — 5.0
|
requiredFeatures | Chrome
No support
? — 59
| Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android
No support
? — 59
| Chrome Android
No support
? — 59
| Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android
No support
? — 7.0
|
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Deprecated. Not for use in new websites.
- Deprecated. Not for use in new websites.
- See implementation notes.
- See implementation notes.