Modify

Opened 10 years ago

Closed 4 years ago

#12 closed enhancement (fixed)

FootNoteMacro reference id's are not unique

Reported by: athomas Owned by: rjollos
Priority: normal Component: FootNoteMacro
Severity: minor Keywords: xhtml conformance
Cc: Trac Release: 0.8

Description

If multiple foot-note references link to the same foot-note, multiple instances of the same id will occur in the HTML.

Attachments (0)

Change History (8)

comment:1 Changed 10 years ago by anonymous

I1 do not completely2 understand the issue here.

But this doesn't matter, since I1 will simply try it out here. But even after multiple tries, I1 cannot find the problem. What happens, if I1 declare the same footnote multiple times (without referencing)? What are footnote references like1 and2 good for anyway? The referencing seems to be problematic, because one has to manually count the footnotes on the page. What happens, if an additional footnote is inserted into the page? Are the existing footnotes renumbered? I don't think so.


  1. 1. Bernhard Haumacher
  2. 2. not even rudimentarily

comment:2 Changed 10 years ago by anonymous

Anyway, even without referencing, the FootNoteMacro is a great idea and I1 have already whished to have it for some time.

Wouldn't it be great, if one would not have to include the explicit call to [[FootNote]] on every page that contains footnotes? This would require some additional TracHacking, but would increase usability.


    comment:3 follow-up: Changed 10 years ago by athomas

    To clarify, the id I was speaking of is the HTML id:

    <a id="FootNoteRef1.1" href="#FootNote1.1">...</a>
    

    Also, the FootNoteMacro does not handle multiple foot-notes with the same content. It simply creates another foot-note.

    comment:4 Changed 10 years ago by athomas

    • Resolution set to wontfix
    • Status changed from new to closed

    [36] coalesces identical references into a single foot-note. Won't worry about the duplicate HTML id's.

    comment:5 Changed 9 years ago by athomas

    Milestone 1.0 deleted

    comment:6 in reply to: ↑ 3 ; follow-up: Changed 4 years ago by anonymous

    • Resolution wontfix deleted
    • Status changed from closed to reopened
    • Trac Release set to 0.8
    • Type changed from defect to enhancement

    Replying to athomas:

    To clarify, the id I was speaking of is the HTML id:

    <a id="FootNoteRef1.1" href="#FootNote1.1">...</a>
    

    Why don't you make it an idref instead? This may occur multiple times in a document. AFAIK the element id is a unique id in the document and should not occur multiple times.

    comment:7 Changed 4 years ago by rjollos

    • Owner changed from athomas to rjollos
    • Status changed from reopened to new

    comment:8 in reply to: ↑ 6 Changed 4 years ago by rjollos

    • Resolution set to fixed
    • Status changed from new to closed

    Replying to anonymous:

    Why don't you make it an idref instead? This may occur multiple times in a document. AFAIK the element id is a unique id in the document and should not occur multiple times.

    Can you provide a patch? If so, please reopen the ticket.

    Add Comment

    Modify Ticket

    Action
    as closed The owner will remain rjollos.
    The resolution will be deleted. Next status will be 'reopened'.
    Author


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

     
    Note: See TracTickets for help on using tickets.