Bug 148191 - xlink:href in SVG is deprecated
Summary: xlink:href in SVG is deprecated
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2022-03-25 23:05 UTC by Chameleon
Modified: 2022-07-30 14:43 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chameleon 2022-03-25 23:05:42 UTC
Description:
According to
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href
xlink:href is deprecated for SVG images.
But LibreOffice Writer needs it.

So, instead of:
<svg width="304" height="364" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
...
<use xlink:href="#letters" transform="translate(0,340)" />

which is deprecated, anyone must use:

<svg width="304" height="364" xmlns="http://www.w3.org/2000/svg">
...
<use href="#letters" transform="translate(0,340)" />


First, which is deprecated, works on LibreOffice.
Second, which is current, does not work.


Steps to Reproduce:
1. Follow description
2.
3.

Actual Results:
.

Expected Results:
.


Reproducible: Always


User Profile Reset: No



Additional Info:
.
Comment 1 Dieter 2022-04-09 05:06:49 UTC
Chamelon, thank you for reportng the bug. Does it happen, if you insert a svg-image, or if you open for example docx-file with svg-image? Please specify steps to reproduce. Thank you.
=> NEEDNFO
Comment 2 Xisco Faulí 2022-07-18 11:45:58 UTC
This is fixed by https://cgit.freedesktop.org/libreoffice/core/commit/?id=5169378d2a0f0a25013c8a4387a6e3cb1a4a55e9
Closing as RESOLVED FIXED