[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1146: wiki incorrectly points to wrong position on anchor click if there's a index implicit

Benoît Minisini gambas at ...1...
Tue Aug 29 16:12:41 CEST 2017



-------- Message transféré --------
Sujet : [Gambas Bug Tracker] Bug #1146: wiki incorrectly points to wrong position on anchor click if there's a index implicit
Date : Tue, 29 Aug 2017 14:09:20 GMT
De : bugtracker at ...3416...
Pour : adrien.prokopowicz at ...626..., mckaygerhard at ...626..., g4mba5 at ...1081....626...

http://gambaswiki.org/bugtracker/edit?object=BUG.1146&from=L21haW4-

Comment #10 by Adrien PROKOPOWICZ:

What do you mean by "complex CSS + trick that breaks compatibility" ? Have you even tried it ?
This is a very simple CSS rule, the closest thing to a "new trick" in it is the + operator, which is supported since IE 7 !

Of course, this rule is not the right way to do, I put it because it's the simplest one to implement without having to change the HTML generated by the markdown parser.

However, since the <a> name attribute is obsolete, I think using an id attribute on the title element is the best solution : it does not require any additional CSS, it only relies on standard and non-obsolete behavior, and it does not bloat the HTML output.
I made a merge request implementing this, so that Benoît can review it if he wants.







More information about the User mailing list