mediawiki-extensions-Cite/tests
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
..
cypress [Cypress] Always provide ref templates to fix Citoid 2024-06-27 17:05:35 +00:00
parser Additional parser test cases for delayed extends usage 2024-07-05 13:08:23 +02:00
phpunit Use slightly narrower interfaces in a few places 2024-06-24 08:07:19 +00:00
qunit Merge "Display extends warning message when editing a reference" 2024-07-05 10:55:58 +00:00