I want to embed SVG image into UserJS script for Opera. The question is how to show this image on loaded page?
I show PNG images using <img src='data://image/png;base64,...'>
, but SVG images aren't shown being used this way. Using external SVG file is OK, but not 'data://image/svg+xml,...'.
I can't embed SVG code to HTML directly, because not every page is XHTML.
I can use <object type='image/svg+xml' data='data://image/svg+xml,.../>
, but then 'click' event doesn't work on it.