Modify

Opened 17 years ago

Closed 16 years ago

#1598 closed defect (fixed)

XHTML Incompatibilities

Reported by: seniorquico@… Owned by: Christian Boos
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 (1)

xhtml-graphviz.py.patch (1.5 KB) - added by seniorquico@… 17 years ago.
Patch file fixing error in ticket

Download all attachments as: .zip

Change History (4)

Changed 17 years ago by seniorquico@…

Attachment: xhtml-graphviz.py.patch added

Patch file fixing error in ticket

comment:1 Changed 16 years ago 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

comment:2 Changed 16 years ago by Christian Boos

Owner: changed from Peter Kropf to Christian Boos

comment:3 Changed 16 years ago by Christian Boos

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.