In my Firefox, text ForeignObjectin SVG is perfectly underlined if I include it in the right tags:
<html:u>blub</html:u>
... declaring html as a namespace in svg, the sample code looks like this:
<div style="border:solid black 2px;">
<svg:svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml"
width="300" height="50" >
<foreignObject width="80" height="50">
<html:u>blub</html:u>
</foreignObject>
</svg:svg>
</div>
Will this decision be for you?
source
share