I want to embed an SVG image in a UserJS script for Opera. The question is how to display this image on the loaded page?
I display PNG images with <img src='data://image/png;base64,...'>, but SVG images are not displayed that way. Using an external SVG file is fine, but not "data: // image / svg + xml, ...".
I cannot directly embed SVG code in HTML, because not every page is XHTML. I can use <object type='image/svg+xml' data='data://image/svg+xml,.../>, but then the 'click' event does not work on it.
tukl
source
share