After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327037 - SVG exported file has problem displaying in FireFox 1.5
SVG exported file has problem displaying in FireFox 1.5
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.94
Other Linux
: Normal minor
: 0.95
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-15 04:06 UTC by jessbody
Modified: 2006-01-17 00:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jessbody 2006-01-15 04:06:22 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.
Comment 1 Hans Breuer 2006-01-15 10:07:16 UTC
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.] 
Comment 2 jessbody 2006-01-17 00:26:02 UTC
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>