rebootcode / svg-edit

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

Support for <style> element in defs section. #913

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create SVG document with <style> embedded in <defs> section
2. Import SVG document into svg-edit
3. Save/export svg document

What is the expected output? What do you see instead?
I expected the <style> element to be preserved but it was not.

Please use labels and text to provide additional information.

According to the SVG spec the <defs> element can contain a <style> element and 
in the case of Chrome the <style> element MUST contain all style information. 
The reason for the removal is that the sanitize whitelist contains no mention 
of a <style> element.

See an attached example svg for more information.

Original issue reported on code.google.com by adamben...@gmail.com on 27 Feb 2012 at 5:42

Attachments:

GoogleCodeExporter commented 8 years ago
Here is a simple patch to add style to svg whitelist

Original comment by adamben...@gmail.com on 27 Feb 2012 at 5:48

Attachments:

GoogleCodeExporter commented 8 years ago
Is this an invalid issue now with r2057?  asyazwan added this to the whitelist 
and I merged it yesterday :)

Original comment by codedr...@gmail.com on 27 Feb 2012 at 11:19

GoogleCodeExporter commented 8 years ago
My apologies, I was still running off a versino from last week and my search 
for style-related issues came up empty, but you are correct this issue is fixed 
in trunk.

Adam

Original comment by adamben...@gmail.com on 27 Feb 2012 at 11:26