chained references in <defs> are not properly handled

Bug #503034 reported by vpadawan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scour
Fix Released
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>

Revision history for this message
codedread (codedread) wrote :

Thank you for the unit test - this helps.

Changed in scour:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
codedread (codedread) wrote :

Fixed in r156, will be release in scour 0.23

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.