Request: Handle xml documents that would be svg files if not for xmls declaration.
Migrated from https://bugs.launchpad.net/inkscape/+bug/1804539
Steps to reproduce:
- open Inkscape
- Try to open PriceChart.svg and PriceChart_2.svg
What happened?
- PriceChart.svg fails to load
The difference between the two files is:
- PriceChart.svg uses
<a0:svg xmlns:a0="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- PriceChart_2.svg uses
<a0:svg xmlns:a0="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
What should have happened?
- Show both files
Example files:
- PriceChart.svg
- Simplified: xml.svg
- Working/modified file: PriceChart_2.svg
Some info from OP:
I wanted to add that the tag seems to be understood by librsvg : https://tools.wmflabs.org/svgcheck/index.php
This strange file generation is reported there :
Version info
- Inkscape 0.92.3 on Windows 10
- Inkscape 1.2-dev (c1616499b1, 2022-01-19 Linux Mint 20
- various inbetween
Reportedly works for Inkscape 0.92.1 on Debian 9 but not replicated on Windows 11 with 0.91.1 or 0.92.2 (it's possible they downloaded a different version, as comments report this was possible depending on how file was saved)