You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Updated examples/simple.html:
<svgclass="icon icon--thumb inject-me" data-src="assets/svg/thumb-up.svg" title="I like it!" alt="thumb" onclick="console.log('clicked');"/><svgclass="icon icon--thumb test-me" data-src="assets/svg/thumb-up.svg" title="I like it!" alt="thumb" onclick="console.log('clicked');"/><svgclass="icon icon--thumb fetch-me" data-src="assets/svg/thumb-up.svg" title="I like it!" alt="thumb" onclick="console.log('clicked');"/><scriptsrc="../src/svg-injector.js"></script><script>newSVGInjector().inject(document.querySelectorAll('.inject-me'));newSVGInjector().inject(document.querySelectorAll('.test-me'));newSVGInjector().inject(document.querySelectorAll('.fetch-me'));</script>
The text was updated successfully, but these errors were encountered:
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.
Updated examples/simple.html:
The text was updated successfully, but these errors were encountered: