Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001897graphvizDotpublic2010-06-03 08:292011-04-28 04:03
ReporterPhilippe Guglielmetti 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-*OS Version
Summary0001897: HREF in HTML label doesn't support &params
Description



URLs containing "&var=value" aren't accepted in <TD HREF="..."> with node HTML-Like labels.



No problem with the URL="..." syntax in nodes



BTW, URL="..." accepts relative urls while HREF="..." does not.



Ideally, I think HREF= should treat its url exactly as URL=
Steps To Reproduce

digraph nodetest {

  node [shape=box fontname="MS Sans Serif" fontsize=9];
  edge [arrowhead=empty fontname="MS Sans Serif" fontsize=9];

  "test" [label=<test> ];
  "Valid Link" [label=<Valid Link> URL="/wiki/index.php?title=Template:Node" fontcolor=blue ];
   "Broken Link" [label=<Broken Link> tooltip="please do not create this page" URL="/wiki/index.php?title=BrokenLink&action=edit" fontcolor=red ];
  "Extern Link" [label=<Extern Link> URL="http://wikipedia.org" [^] fontcolor =blue ];
  "test6" [label=<<TABLE ><TR>
<TD >a table</TD></TR><TR>
<TD >with a row</TD></TR></TABLE>> shape=plaintext ];
  "test7" [label=<<TABLE ><TR>
<TD HREF="http://osterone/wiki/index.php?title=Template:Node"><FONT [^] COLOR="blue">a valid link</FONT></TD></TR><TR>
<TD HREF="http://osterone/wiki/index.php?title=BrokenLink&action=edit"><FONT [^] COLOR="red">an invalid link</FONT></TD></TR></TABLE>> shape=plaintext ];

}
Additional Information

dot complains : Error: not well-formed (invalid token) in line 3
<CD>
..
<TD HREF="http://osterone/wiki/index.php?title=BrokenLink&action=edit"> [^] ...
in label of node test7
</CD>

FYI, the graph source above is produced by a set of MediaWiki templates that automatically create links to wiki pages from nodes, coloring the text in blue if the target page exists, red if it doesn't. I'll publish all this once it works ;-)

[erg]
Graphviz uses libexpat to parse the HTML-like strings. This means that raw ampersands can't occur within <...>.
That said, if you replace your '&' characters with "&", dot will parse the input without error and you'll
end up with the same URL as you would have gotten with the URL attribute. That is,
<CD>
   URL="http://osterone/wiki/index.php?title=BrokenLink&action=edit" [^]
</CD>
and
<CD>
  HREF="http://osterone/wiki/index.php?title=BrokenLink&action=edit" [^]
</CD>

will produce identical output.

> BTW, URL="..." accepts relative urls while HREF="..." does not.

Could you give more details about this? I find that relative URLs work fine via HREF.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1969
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (9 Jun 2010)
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


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