mediawiki-extensions-Cite/tests/parser
Subramanya Sastry f38bcde14e Add 'mw-cite-backlink' class to Parsoid's HTML
This patch adds 'mw-cite-backlink' to the linkback span for both
named and unnamed refs. This requires us to add a span wrapper
for the unnamed refs case.

Verified in local testing that this causes aria attributes to be
added to the linkback tags in Parsoid HTML.

This should likely fix other gadgets and code that rely on this
class name to do their work.

Strictly speaking, this is a breaking change since we add an
extra span wrapper for the unnamed ref backlinks which *could*
break anyone using a li > a[rel="mw:referencedBy"] selector.
But, given the specificity of the a[rel] selector, the "li >"
part is unnecessary and might not be used. So, if we wanted to
push our luck (and break process), we could get this in.

Alternatively, we could:
- do this in the the read views OutputTransformPipeline.
- do a real major version bump -- we would be exercising that
  functionality and have to fix and implement any missing pieces
  that may have broke as part of the RESTBase sunsetting.
- not add the span wrapper and fix gadgets to explicitly look for
  both named and unnamed refs with their selectors.

Bug: T328695
Change-Id: Icbd325ebd12cb42186c5b5220dc016835eb18b64
2024-05-31 14:42:04 -05:00
..
bookReferencing.txt Documenting state of subref reuse rollback 2024-01-09 18:05:05 +01:00
citeParserTests-knownFailures.json Add 'mw-cite-backlink' class to Parsoid's HTML 2024-05-31 14:42:04 -05:00
citeParserTests.txt Add 'mw-cite-backlink' class to Parsoid's HTML 2024-05-31 14:42:04 -05:00
citeSmokeTests.txt Give a different error from too_many_keys when 'follow' attribute conflicts 2023-12-15 15:23:53 +01:00
fragementModes.txt Skip URL encoding in id="…" attributes that aren't URLs 2023-12-12 13:56:37 +00:00
parserFunctionTests.txt Remove problematic spaces from a parser test case + Rename a test file 2023-03-01 08:54:11 -06:00
responsiveReferences.txt Add parser & unit test cases for different $wgFragmentMode's 2022-01-03 14:14:47 +01:00