mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 09:40:49 +00:00
a8e299b21e
* Note: the <ref name="1"> numeric is flagged as an error, but <ref follow="1"> is not flagged as well as it would be duplicitous. We are proposing that Numeric digits as a name be changed to a warning as Parsoid Cite handles them properly without error. Background: The core Cite extension started off not allowing numeric names because the data structure they used made it inconvenient, but Parsoid Cite has a separate index for named refs. The core Cite devs thought there was potential for a conflict in the ids if numeric names were allowed. The ids that core uses follow the pattern: for no name defined: cite_ref-1 cite_ref-2 for name="refname": cite_ref-refname_3-0 cite_ref-refname_3-1 so for name="1" at worst you might see ids like: cite_ref-1 or cite_ref-1_2-0 so that does not produce conflicting IDs and isn't a concern, and that is the pattern that Parsoid Cite uses. * Error case of numeric in name and follow and two tests that validate errors. Bug: T51538 Change-Id: I95d725d0f77abadc1ddb2dd6939762b7d322e4f2 |
||
---|---|---|
lib/ext/Cite | ||
src/Parsoid |