SVG icons over innerHtml

114 views
Skip to first unread message

Pavel Shirobok

unread,
Mar 27, 2025, 10:59:32 AMMar 27
to Chromium Extensions
Hi, everyone,

I want to create angular component for icons and store svg icons as row svg strings instead of building regular angular templates. The only one way to apply it to DOM is using innerHtml.
So question is, will it violate some security policies of chrome web store? Can I get rejected extension after this change?

PS: right now I use angular templates for it, and it's fine and working well for extensions and SPA, instead of huge bundle size and slow building. Im looking for some "perfect" solution with reducing bundle size, making build faster and keep all flexibility of in-DOM svgs.

Thanks!

Pavel Shirobok

unread,
Mar 30, 2025, 12:14:02 AMMar 30
to Chromium Extensions, Pavel Shirobok
I mostly interested in security violation by using innerHtml. As documation said "avoid innerHTML".
I really interested in using it, so I appreciate for any help with undestarting the problem. Thanks! 

четверг, 27 марта 2025 г. в 11:59:32 UTC+1, Pavel Shirobok:
Reply all
Reply to author
Forward
0 new messages