HTMLInclude
HTMLInclude copied to clipboard
SVG Not Supported
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.