Previously <use> elements were only searching for the element within <defs> but the element to use could exist anywhere within the DOM. This change now searches <defs> first, then proceeds to recursively search the DOM for the first element that matches the id.
Fix for https://github.com/swhitty/SwiftDraw/issues/43.
Previously
<use>
elements were only searching for the element within<defs>
but the element to use could exist anywhere within the DOM. This change now searches<defs>
first, then proceeds to recursively search the DOM for the first element that matches the id.