chained references in <defs> are not properly handled

Bug #503034 reported by vpadawan on 2010-01-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scour
High
Unassigned

Bug Description

source file :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg id="svg2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
   <path id="a_line" stroke="#000000" d="M0,0 100,100"/>
   <g id="a_group"><use xlink:href="#a_line"/> <path stroke="#000000" d="M0,100 100,0"/></g>
  </defs>
  <use xlink:href="#a_group"/>
</svg>

output file :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg id="svg2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
 <defs>
  <g id="a_group"></g>
 </defs>
 <use xlink:href="#a_group"/>
</svg>

codedread (codedread) wrote :

Thank you for the unit test - this helps.

Changed in scour:
status: New → Confirmed
importance: Undecided → High
codedread (codedread) wrote :

Fixed in r156, will be release in scour 0.23

codedread (codedread) on 2010-02-04
Changed in scour:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers