rebootcode / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Fail to render SVG #868

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open attached image in a image viewer
2. Open attached image in svg-edit
3. See the differences and errors in svg-edit

What is the expected output?
To see the image without problems

What do you see instead?
Some things missing, others misplaced and some i don't even know what they are 
supposed to be.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)
Firefox 7.0.1 and Chromium 15.0.871.0 didn't test other browser tough.
Both displays the image perfectly if open directly in the browser.

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)
2.5.1

Please provide any additional information below.
Not necessary

Original issue reported on code.google.com by pie.or.paj on 21 Oct 2011 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
I just briefly looked at your image (exported from Visio, I see).  I think it's 
because svg-edit doesn't support the <style> element.  You could try to add the 
style element to the whitelist in sanitize.js on your local copy of svg-edit 
and see if things improve

Original comment by codedr...@gmail.com on 21 Oct 2011 at 10:00

GoogleCodeExporter commented 9 years ago
Exported from visio and modified in inkscape so the markup is ugly :(

Where can I find the "sanitize.js"? tried to search but could not find the file.

Original comment by pie.or.paj on 21 Oct 2011 at 10:12

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/svg-edit/source/browse/#svn%2Ftrunk%2Feditor

You would need to check out the repository from trunk and modify the file, then 
run it from a local web server to see if your fix works... welcome to the world 
of hacking :)

Original comment by codedr...@gmail.com on 22 Oct 2011 at 12:37

GoogleCodeExporter commented 9 years ago
It did work, thank you :)

I just downloaded the source from "download". I thought it wold be the same but 
apparently not.

Original comment by pie.or.paj on 22 Oct 2011 at 8:15