When using show_source
the code snippet has a span
and codelineno
ID per line, e.g. </span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35"></a>
.
If referencing the same line in two different code snippets (e.g. the same line from two different modules given on the same page or the same method being referenced as it is inherited from the parent abstract base class in a module), there are duplicate instances of the same spand and codeline ID. Accessibility checkers complain about this, and with good reason!
Ideally, each source code snippet would have some kind of unique code (maybe a random hash?) that is added to the IDs.
For now, I've simply ignored these types of IDs in my Accessibility checker, but it is non-ideal...
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too