To reproduce:
- Start translating https://en.wikipedia.org/wiki/William_Daniel_Phillips
- Click the "Biography" section heading.
- Press Ctrl-A to select the whole heading. Press delete the heading's text. If you inspect the element, you'll see that the text disappears and is replaced by <br />
- Type a new heading: "Biografia". If you inspect the heading, you'll see that the <br /> is in the end of the text.
- Publish the article.
Expected:
== Biografia ==
Actual:
== Biografia<br> ==
This also causes the heading to be displayed incorrectly.
I'm not sure whether this is something that must be fixed in ContentTranslation or auto-normalized by Parsoid.
Tested in Firefox on Fedora.