SVGAltGlyphElement.glyphRef

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

The SVGAltGlyphElement.glyphRef property is a DOMString representing a glyph identifier. It has the same meaning as the ‘glyphRef’ property on the SVGGlyphRefElement interface of the <glyphRef> element.

Syntax

JavaScript
string = myGlyph.glyphRef;
myGlyph.glyphRef = string;

Value

The return value is a Glyph Identifier, the value of which depends on the format of the given font.

Example

JavaScript
myGlyph.glypRef = "#glyphID";

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'glyphRef' in that specification.
Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 4.0 (2.0) [1] ? 10.6 4.0
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 4.0 (2.0)[1] No support 11.0 4.0

See Also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/svgaltglyphelement/glyphref

API Deprecated Property Reference SVG SVGAltGlyphElement SVGAltGlyphRefElement