Hi Marc,
1. please follow Rouslan's suggestions; however, the variable, after the
split, really contains a span id (to find the other footnote span)
2. please add a comment just before the line containing the split,
explaining that this variable contains two classes at this point (for
example "footnotemarker footnote_1_1")
3. also add a comment, using for example footnote_2_3 and that after the
split, the variable contains 2, so will find the footnote #2
I find it a bit hazardous to use this split on a string which contains
two classes. You never know, another class having an underscore could be
added to this element in the future.
Another thing I find unclear: in and
PMA_convertFootnotesToTooltips() you have kept the principle of using
the instance of the footnote, even though the goal of the instance was
only to have unique ids. IMO you should get rid of the instance.