Ticket #1598 (closed defect: fixed)

Opened 2 years ago

Last modified 3 months ago

XHTML Incompatibilities

Reported by: seniorquico@hotmail.com Assigned to: cboos
Priority: normal Component: GraphvizPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

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.

Attachments

xhtml-graphviz.py.patch (1.5 kB) - added by seniorquico@hotmail.com on 06/02/07 01:13:57.
Patch file fixing error in ticket

Change History

06/02/07 01:13:57 changed by seniorquico@hotmail.com

  • attachment xhtml-graphviz.py.patch added.

Patch file fixing error in ticket

09/21/08 14:27:43 changed by franck34

I think you have to report this bug on graphviz mailing list, it's not related to the plugin. Tool used to generated the sitemap is from graphviz.

Cheers

Note: i'll try to ask to grapviz team myself, i'm on the ml

10/06/08 12:20:21 changed by cboos

  • owner changed from pkropf to cboos.

10/06/08 12:36:21 changed by cboos

  • status changed from new to closed.
  • resolution set to fixed.

Should be fixed by [4401] and [4402].


Add/Change #1598 (XHTML Incompatibilities)




Change Properties
Action