Transformations like these need to take place:
- <b /> to </b>
- <div /> to </div>
- </tag/> to </tag>
Special cases: empty <font /> or <span /> (with no attributes) should be left alone when editing pages in namespaces like “Help”.
Tasks:
- Add code to properly close the tags
- Pass the name of the namespace of the page being edited to delint()
- Modify existing tests to get them to pass (as the behavior of delint() would have changed)
- Add new tests to ensure the newly added functionality is working properly
Relevant docs: https://www.mediawiki.org/wiki/Help:Lint_errors/self-closed-tag