mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Parser test to check for the regression fixed by 28906.
This commit is contained in:
parent
57a761acb5
commit
7a0d1123e9
|
@ -188,6 +188,25 @@ Regression sanity check: non-blank ref "1" followed by ref with content
|
|||
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Ref names containing a number
|
||||
!! input
|
||||
<ref name="test123test">One</ref>
|
||||
<ref name="123test">Two</ref>
|
||||
<ref name="test123">Three</ref>
|
||||
|
||||
<references />
|
||||
!! result
|
||||
<p><sup id="_ref-test123test_0" class="reference"><a href="#_note-test123test" title="">[1]</a></sup>
|
||||
<sup id="_ref-123test_0" class="reference"><a href="#_note-123test" title="">[2]</a></sup>
|
||||
<sup id="_ref-test123_0" class="reference"><a href="#_note-test123" title="">[3]</a></sup>
|
||||
</p>
|
||||
<ol class="references"><li id="_note-test123test"><a href="#_ref-test123test_0" title="">↑</a> One</li>
|
||||
<li id="_note-123test"><a href="#_ref-123test_0" title="">↑</a> Two</li>
|
||||
<li id="_note-test123"><a href="#_ref-test123_0" title="">↑</a> Three</li></ol>
|
||||
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Erroneous refs
|
||||
!! input
|
||||
|
|
Loading…
Reference in a new issue