HTMLInclude icon indicating copy to clipboard operation
HTMLInclude copied to clipboard

SVG Not Supported

Open jeffnyman opened this issue 3 years ago • 0 comments

For some reason, this won't work if you have an svg take the file you are including. Here's what I had:

<svg style="display: none;">testing</svg>

This leads to the following error:

Uncaught SyntaxError: Unexpected token ';'
    at HTMLElement.appendChild (<anonymous>:5:4364)
    at HTMLInclude.js:28:40
    at Array.forEach (<anonymous>)
    at xhr.onreadystatechange (HTMLInclude.js:12:34)

For what it's worth, this doesn't happen with a tag like canvas.

jeffnyman avatar Aug 07 '22 18:08 jeffnyman