I have this SVG container with paths. I want to edit it, so the paths\' fill will be a pattern. This is my failed attempt:
I add a gradient:
$(\'svg
Found a solution. It's a bit ugly, but doesn't require the use of additional plugins.
Apparently, a pattern has to be included in the tag when the SVG is first created (it's probably only read then).
Thus, replacing the SVG tag's wrapper's contents with themselves works (base being that wrapper):
$(base).html($(base).html())