根据SVG 2.0规范,它可能是类似的
document.implementation.hasFeature("http://www.w3.org/TR/SVG2/feature#GraphicsAttribute", 2.0)
Run Code Online (Sandbox Code Playgroud)
SVG 1.1支持您可以使用hasFeature调用进行检查
document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG", 1.1)
Run Code Online (Sandbox Code Playgroud)
编辑: hasFeature
已弃用并从Web标准中删除.它将在现代浏览器(DOM Spec)上始终返回.