namespace not needed, svg is the default one anyway
This commit is contained in:
parent
77b72b3118
commit
7cd12544c0
@ -69,7 +69,7 @@ module SVGGVS
|
|||||||
css('svg|use').each do |clone|
|
css('svg|use').each do |clone|
|
||||||
if source = css(clone['xlink:href']).first
|
if source = css(clone['xlink:href']).first
|
||||||
if source.name == 'flowRoot' || source.name == 'text'
|
if source.name == 'flowRoot' || source.name == 'text'
|
||||||
new_group = clone.add_next_sibling("<svg:g />").first
|
new_group = clone.add_next_sibling("<g />").first
|
||||||
|
|
||||||
clone.attributes.each do |key, attribute|
|
clone.attributes.each do |key, attribute|
|
||||||
new_group[attribute.name] = attribute.value
|
new_group[attribute.name] = attribute.value
|
||||||
|
Loading…
Reference in New Issue
Block a user