GNOME Bugzilla – Bug 327037
SVG exported file has problem displaying in FireFox 1.5
Last modified: 2006-01-17 00:26:02 UTC
Please describe the problem: Two problems: 1) The SVG tag does not include the following statement required by FF to recognize the XML format: <svg xmlns="http://www.w3.org/2000/svg" ... > 2) The text statement typically rendered as follows does not display in FF 1.5. <text style="fill: #000000; text-anchor:end; font-size: 1; font-family: times; font-style: normal; font-weight: normal" x="8.65" y="7.3">r</text> Without the "text-anchor" style, the text is displayed correctly. Steps to reproduce: 1. Export a diagram containing text in SVG. 2. View in FireFox 1.5 Actual results: 3. FF will not recognize the SVG format unless the "xmlns" statement is included in the SVG tag. 4. Further, the text will likely not show until the "text-anchor" style attribute is removed. Expected results: Expect FF to render the exported SVG without manually editing (correcting) the generated XML file. Does this happen every time? Yes. Other information: No.
Thanks for the report. The namespace bug is already known and fixed i cvs. http://cvs.gnome.org/viewcvs/dia/plug-ins/python/diasvg.py?rev=1.6&view=log Regarding your 4.: you should report a bug at FF cause it is valid SVG. Also as http://www.gnome.org/projects/dia/python.html shows the text is visible. But at the wrong place. [Looks fine whith a browser which should not be named and the Adobe SVG plug-in.]
Thanks for quick response. Regarding the style issue, these "authoring guidelines" http://jwatt.org/svg/authoring/ (pointed to by Mozilla page) warn against the use of the style. According to it, it is preferable to do <text fill="#000000" font-family="times" x="8.65" y="7.3">r</text>