svg-injector
svg-injector copied to clipboard
Accessing original element in beforeEach
Can i get original element before transformation in beforeEach? I need to apply some attributes as original img tag has.
Thanks in advance!
Hi @vizo, which element are you looking to apply attributes to? You can access the SVG DOM element in beforeEach
, e.g. here.
Closing due to inactivity.
Hi @vizo, which element are you looking to apply attributes to? You can access the SVG DOM element in
beforeEach
, e.g. here.
I want to access original img element before transformation in beforeEach, not new SVG element.
I want to access original img element before transformation in beforeEach, not new SVG element.
👍
What attributes are you looking to apply, do you have a code example I can look at? (Some attributes are automatically transferred). Alternatively, some custom code written prior to injection might get the job done.
Inactive again, can reopen if need be.