Is it possible to append a div inside an SVG element? [duplicate]

You can’t append HTML to SVG (technically you can with foreignObject, but it’s a rabbit hole). Furthermore, visible elements in SVG can’t be nested, so elements such as circle, rect, path and such can’t have children elements.

Leave a Comment