Steps to replicate the issue (include links if applicable):
- Save the following wikitext on a page:
<span class="summary" style="display:none"><ref >Content of reference</ref></span>
<span class="summary" style="display:none"><ref group="lower-alpha">Content of note</ref></span>
==References==
<references/>
==Notes==
{{notelist}}What happens?:
The reference footnote numbers/letters are not displayed, but the reference and the note are displayed. This happens in both the legacy parser and in Parsoid.
The ^ markers that point to #cite_ref-1 and #cite_ref-2 have no target on the page.
What should have happened instead?:
Neither the reference nor the note should be displayed, since they are wrapped in "display:none".
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
There is a test page with the above code at https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox&oldid=1373436375