Inlining an SVG image tag containing an alt attribute works as expected: it generates an <svg> element containing the alt attribute (since attributes are preserved). The only problem is that alt attributes aren't allowed in SVG elements and throws and throws an error when validated with the W3C HTML Validator.
Inlining an SVG image tag containing an alt attribute works as expected: it generates an
<svg>
element containing the alt attribute (since attributes are preserved). The only problem is that alt attributes aren't allowed in SVG elements and throws and throws an error when validated with the W3C HTML Validator.So inlining something like this
generates this (as expected)
but fails the W3C HTML Validator:
Please check here for a list of allowed attributes