4xx / svg-edit

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

Not stripping whitespace when parsing style attribute #1052

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click the <svg> button to bring up the editor.

2. Enter the following SVG document:
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 
500 500">
<path d="M 250,0 L 250,500" style="stroke: rgb(239, 22, 30); stroke-width: 
100;"/>
</svg>

3. Click Apply Changes

What is the expected output? What do you see instead?
Should be a fat line.  It's a thin line.

The parsing of the style attribute in sanitize.js since it is not stripping 
whitespace from the attribute names or values.

Original issue reported on code.google.com by codedr...@gmail.com on 13 Feb 2013 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 13 Feb 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Fixed in r2376

Original comment by codedr...@gmail.com on 20 Feb 2013 at 2:53