SVGURIReference

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。

The SVGURIReference interface is used to reflect the href attribute and the deprecated xlink:href attribute.

Properties

SVGURIReference.href Read only
An SVGAnimatedString that represents the value of the href attribute, and, on elements that are defined to support it, the deprecated xlink:href attribute. On getting href, an SVGAnimatedString object is returned that
  • reflects the href attribute, and
  • if the element is defined to support the deprecated xlink:href attribute, additionally reflects that deprecated attribute.

Methods

This interface does not provide any specific methods.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGURIReference' in that specification.
Candidate Recommendation Replaced the deprecated xlink:href attribute reference by the href attribute and made the prior only be reflected where it's defined to be supported.
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGURIReference' in that specification.
Recommendation Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? ? ? ? ? ?
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ? ?

文档标签和贡献者