mediawiki-extensions-Cite/tests/parser
thiemowmde 1aeac001fe Additional parser test cases for delayed extends usage
We want it to be possible to turn a <ref> into an extended one after
it was re-used for the first time, not knowing if it later turns out
to be an extended ref.

This should work: <ref name=x/> is a short re-use of a ref that later
turns out to be a <ref extends=… name=x>…</ref>.

<ref name=x></ref> is just another syntax that should behave
identical.

However, it should probably not be possible to turn
<ref name=x>foo</ref> into a subref later because it really, really
looks like a normal ref. Even if the content matches with a later
<ref extends=… name=x>foo</ref> and we usually ignore identical
content, I suggest to block this with a dedicated error message. But
this is for a later patch. This patch here just documents the status
quo.

This patch also contains minor code cleanups that will be useful in
Ia752a7d.

Bug: T367749
Change-Id: Ie38769b36e5c476b96e7af7f03b0fc800b32ba97
2024-07-05 13:08:23 +02:00
..
bookReferencing.txt Additional parser test cases for delayed extends usage 2024-07-05 13:08:23 +02: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