mediawiki-extensions-Cite/includes
Thiemo Kreuz b10dd4ec27 Block de-facto empty <ref> as if it's empty
The use case we care about is this:
<ref extends="some_book"> </ref>

It doesn't make sense that works, but the following doesn't:
<ref extends="some_book"></ref>

We decided that both need to behave the same.

For consistency this patch is applying the same change to all references,
no matter if they use the extends attribute or not. This is an actual
change and might make existing wikitext render differently. However, I
would like to argue that all wikitext that was using this was broken. The
effect of a <ref> </ref> with some whitespace is that the <references>
section at the end of the article will contain – well – an empty footnote.

Bug: T237241
Change-Id: Iaee35583eabcb416b0a06849b89ebbfb0fb7fef9
2019-11-20 15:07:54 +00:00
..
ApiQueryReferences.php Don't pass a Title object around that's not needed 2019-11-19 16:48:36 +01:00
Cite.php Block de-facto empty <ref> as if it's empty 2019-11-20 15:07:54 +00:00
CiteCSSFileModule.php Fix all PHPCS issues and add missing array type hints 2019-10-17 09:23:20 +02:00
CiteDataModule.php CiteDataModule: Remove origin restriction 2018-04-30 22:18:06 +02:00
CiteErrorReporter.php Extract all error reporting to a CiteErrorReporter 2019-11-19 14:53:31 +01:00
CiteHooks.php Get rid of obsolete method_exists() checks 2019-11-19 15:31:28 +01:00
CiteParserHooks.php Merge "Make two Cite properties private" 2019-11-19 14:54:11 +00:00
CiteParserTagHooks.php Add @license to all files 2019-11-19 11:31:08 +01:00