Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002197graphvizDotpublic2012-02-02 18:222014-12-21 11:53
Reportersteve roush 
Assigned To 
PlatformOSlinux / fedora 16OS Version
Summary0002197: ID="value" fails to produce id string in svg:svg output for html nodes
DescriptionID="value" seems to be ignored in html node for svg:svg output
Steps To Reproduceadd ID="stuff" to <TABLE ...> or <TD ...> lines
e.g in html2.gv file

use: dot -Tsvg:svg
TagsNo tags attached.
Attached Files? file icon HTML_ID_test.gv [^] (1,217 bytes) 2012-02-02 18:22

- Relationships

-  Notes
User avatar (0000181)
ellson (administrator)
2012-02-03 09:53

Just to check if I understand what you think should be happening...

You expect <TABLE ID="x"> ... <TD ID="y"> ... </TD> ... </TABLE>
to be rendered in SVG as:

<g id="x">
   ... table components...
   <g id="y">
        ... cell components
   ... more table components ...

Is that correct?
User avatar (0000278)
rd- (reporter)
2013-02-03 22:26

I was also hoping that this would be how SVG record output would work, particularly for TD elements.

Is it likely to be implemented?

For my purposes an id attribute at either the 'text' or 'polygon' associated with the TD element would also work (in case that simpler than adding a further 'g' element).

User avatar (0000279)
ellson (administrator)
2013-02-04 00:12

It does appear that ID in <TABLE> is not working. (Emden?)

IDs on node or edge objects do work though, e.g.

digraph {
        x [ id=this_is_x
                <table id="A">

$ dot id.gv -Tsvg | grep this
<g id="this_is_x" class="node"><title>x</title>
User avatar (0000302)
erg (administrator)
2013-02-26 15:22

At present, the id is emitted if the table or cell has an HREF or TARGET attribute, so a simple workaround would be to set HREF=" ".
User avatar (0000303)
Jon (reporter)
2013-03-06 10:12

Actually I have the same problem with trying to add IDs to table cells, and when I removed the HREF and TARGET attributes the id still does not appear.

- Issue History
Date Modified Username Field Change
2012-02-02 18:22 steve roush New Issue
2012-02-02 18:22 steve roush File Added: HTML_ID_test.gv
2012-02-03 09:53 ellson Note Added: 0000181
2013-02-03 22:26 rd- Note Added: 0000278
2013-02-04 00:12 ellson Note Added: 0000279
2013-02-26 15:22 erg Note Added: 0000302
2013-03-06 10:12 Jon Note Added: 0000303

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker