As per https://www.w3.org/TR/SVG/implnote.html#ErrorProcessing , "The document shall be rendered up to, but not including, the first element which has an error. "
Your error (invalid character) is at the beginning of the file, so nothing is rendered
As per https:/ /www.w3. org/TR/ SVG/implnote. html#ErrorProce ssing , "The document shall be rendered up to, but not including, the first element which has an error. "
Your error (invalid character) is at the beginning of the file, so nothing is rendered