I have a SVG image, that contains <title> elements which are used as tooltips. When I load the SVG in Mozilla, the tooltips display correctly.
However, when I use the SVG in an HTML document, via the <img> element the tooltips are not displayed on mouseover.
Is it possible to get the tooltips to display correctly?
The HTML is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SVG in HTML title test</title>
</head>
<body>
<img src="test.svg" />
</body>
</html>
and the SVG is
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/SVG/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100">
<title>SVG in HTML test</title>
<g>
<polygon stroke="black" stroke-width="1" fill="#0000ff" points="20,20 40,20 40,40 20,40" />
<title>rectangle</title>
</g>
<g>
<circle stroke="black" stroke-width="1" fill="#ff0000" cx="70" cy="70" r="10" />
<title>circle</title>
</g>
</svg>