SVGInjector2 icon indicating copy to clipboard operation
SVGInjector2 copied to clipboard

Fast, caching, dynamic inline SVG DOM injection library

Results 10 SVGInjector2 issues
Sort by recently updated
recently updated
newest added

I get an error `Uncaught TypeError: Cannot read property 'split' of null` in Chrome, and `TypeError: i is null [Learn More]` in Firefox, given the following code: document.addEventListener('DOMContentLoaded', function() {...

Hi, when multiple instances of SVGInjector are processing various elements with the same URL, an error upon calling replaceChild() on a null object appears, but the element is inserted properly....

Please, remove this: `//# sourceMappingURL=./dist/svg-injector.map.js` from the `https://cdn.jsdelivr.net/npm/[email protected]/dist/svg-injector.min.js` version … or add the map. ![screen shot 2018-07-11 at 10 01 57](https://user-images.githubusercontent.com/1193257/42558455-96bd1c66-84f1-11e8-9bac-3198f6f3a0aa.png)

This is a reference issue, since the old version seems a bit abandoned. https://github.com/iconic/SVGInjector/issues/29 Can you help me sort this out? I can send you my svg file if it...

We had some issues with svg's who's data-src values were dynamic e.g.

I know it's a boundary case but I have 2 angular apps running on a single page, both are using svg-injector and it throws an error if I try loading...

instead of the spritesheet-url, specify a path to a folder

enhancement

for the angular directive.. use an additional flag/attr so it does not impact performance

enhancement

Check if external stylesheet contains a styledef with an URL e.g.: ``` .className{ fill: url(#bg-arrow--gradient-yellow-linear-gradient-1); } ``` Since this is most likely from the injected svg make sure to not...

enhancement

gradients, mask, etc stop to work as soon as a basetag is present on the embedding html-page. In this case, IRI-refs would need to be prefixed by the absolute path.

enhancement