On master:
$ echo "<ref>Foo</ref> {{echo|<references />}}" | node js/tests/parse.js
<body data-parsoid='{"dsr":[0,39,0,0]}'><span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"Foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>Foo</ref>","dsr":[0,14,5,6]}'><a href="#cite_note-1">[1]</a></span> <ol class="references" about="#mwt4" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}}]}' data-parsoid='{"html":"<ol class=\"references\" typeof=\"mw:Extension/references\" about=\"#mwt6\" data-parsoid=\"{&quot;src&quot;:&quot;<references />&quot;}\"></ol>","dsr":[15,38,null,null],"pi":[[{"k":"1","spc":["","","",""]}]]}'></ol>
</body>
Note the empty <ol> tag, and the absence of the reference contents ("Foo") in the HTML (other than in the data-mw attribute of the span).
Version: unspecified
Severity: normal