Closed Bug 295478 Opened 20 years ago Closed 20 years ago

Compressed SVG documents fail to decompress causing svg parser to complain about wel-formed ness

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: toddf, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050523 Firefox/1.0+ Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050523 Firefox/1.0+ http://www.svgmaker.com/gallery/3dbar.svgz gets the following error: XML Parsing Error: not well-formed Location: http://www.svgmaker.com/gallery/3dbar.svgz Line Number 1, Column 1:� ^ Reproducible: Always Steps to Reproduce: 1. browse to http://www.svgmaker.com/gallery/3dbar.svgz To verify that the 3dbar.svg is valid when decompressed download the file. 1. wget http://www.svgmaker.com/gallery/3dbar.svgz 2. mv 3dbar.svgz 3dbar.svg.gz 3. gzip -d 3dbar.svg.gz viewing 3dbar.svg appears to render correctly. Expected Results: It should have decompressed the svg file rendering the svg
the server does not send Content-Encoding: gzip... this looks invalid to me.
cc'ing bz who is into these things. Or at least knows about them...
Yep, this is invalid. The server claims that this is an image/svg+xml with no encoding applied. image/svg+xml is using the "+xml" suffix, so must be XML. So we parse it as XML. The SVG Working Group is working on sorting out this mess, but as things stand doing anything other than what we do would be a violation of existing finalized standards.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
*** Bug 309593 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.