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.
More Related Contents:
- Include SVG files with HTML, and still be able to apply styles to them?
- Date Format UTC in javascript [duplicate]
- javascript change element from another page
- How do I access the link to the content? [closed]
- This doesn’t seem right? Javascript isn’t working
- Detect all changes to a (immediately) using JQuery
- Resize event for textarea?
- Convert SVG to PNG with applied images as background to svg elements
- Why should y.innerHTML = x.innerHTML; be avoided?
- Create table with jQuery – append
- jQuery: how to change tag name?
- Disable dragging an image from an HTML page
- When using jQuery on(), why use (document) vs. the element itself?
- Use a new CSS file to override current website’s
- Count textarea characters
- D3js take data from an array instead of a file
- How can I change the font (family) for the labels in Chart.JS?
- jQuery equivalent of getting the context of a Canvas
- Unusual shape of a textarea?
- Is it possible to use HTML’s .querySelector() to select by xlink attribute in an SVG?
- How to display Image dynamically on UI?
- hide open/active accordion when another accordion is clicked
- Fade background image in and out with jQuery?
- Trying to load local JSON file to show data in a html page using JQuery
- How to do something before on submit?
- Convert dropdown to selection boxes with color and trigger drop down action
- DOM Element Width before Appended to DOM
- Convert JavaScript variable value to csv file
- focus on next tabindex of HTML element onEnter keypress by JQuery
- Find and replace nth occurrence of [bracketed] expression in string