Skip to content

Fate of xlink, opinion needed #184

@baybal

Description

@baybal

XML preamble xlink: and namespace declaration xmlns:xlink="http://www.w3.org/1999/xlink" is no longer needed in every web renderer these days. https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/href

This has been a proposal since SVG 1.2, and this is why some renders not explicitly supporting 2.0 has its support.

Instead of <use x="-19" y="170" xlink:href="#o"/> you can simply use <use x="-19" y="170" href="#o"/>

Support in browsers is certainly there, but I can't say so for offline renderers. Librsvg doesn't seem to do it despite having most complete 1.2 support of all offline renderers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions