Skip to content

Inkscape fails to load reusable elements that are referenced via "href"

Summary:

xlink:href is deprecated in favour of href (see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href ) However, Inkscape does not load resources referenced via href.

Steps to reproduce:

  • Open Inkscape
  • Load the attached file below, href.svg

What happened?

No red squares are rendered.

What should have happened?

2 red squares should be rendered.

Sample attachments:

href.svg <-- This file uses href and does not render correctly in Inkscape

xlink-href.svg <-- This file uses xlink:href and renders correctly in Inkscape

Version Info:

- Inkscape Version: 1.0.2 (e86c870879, 2021-01-15, custom)
- Operating System: Windows 10 Pro
- Operating System version: 2004
Edited by Sze Howe Koh
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information