|Reported by:||Owned by:||Christian Boos|
graphviz output that's linked to an image map produces invalid XHTML. The problems are:
- "area" tag is not closed; should be <area ... />
- "id" attributes must be unique; duplicated in "area" and "img" tags
- "id" attributes must begin with a letter; generated "sha_key" has possibility of beginning with a number; static letter should be prefixed to "sha_key"
The first bullet is a problem with graphviz's output. My environment: Win 2k3 Enterprise, Apache 2.2.3, Python 2.5.1, mod_python 3.3.1, graphviz 2.12 (pre-built binary), Trac 0.11dev. I've attached a patch that fixed the output for me.
Please note: this is the first time I've ever coded in Python. So...sorry if something is wrong or if it's messy. I just look at this as a pointer to what could be done. I hope it helps someone out.