Steps to reproduce
- Create a blank page with VisualEditor
- Insert a reference (<ref>) tag
- Add a space within ref tag, and insert
- Insert a score tag
- Add a space within the score tag and insert
- Save
Expected
VisualEditor removes the tag and leave empty space (or refuses to insert) because it doesn't contain any useful content and when saved causes errors, e.g. <ref> </ref> is output as <ref/>.
Actual
Upon saving, the both extension tags show errors with tracking categories.
Example (https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=2455494).