When creating a node that has a typeof="mw:Placeholder" element, the expectation from Parsoid is that these nodes are not modified by clients (as per spec https://www.mediawiki.org/wiki/Specs/HTML/2.4.0#Expectations_of_editing_clients). However, this doesn't seem to be the case.
The problem can be displayed on https://patchdemo.wmflabs.org/wikis/6871284e64/wiki/Test?veaction=edit - where the content between the <translate> nodes is wrapped inside a <div> with that attribute, and where that part of the content stays editable.
A (convoluted) way to test this behaviour on a local installation:
- run MW with Parsoid patch https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/769071/2 (test failures are irrelevant to the issue - tests haven't been updated yet for the new behaviour introduced by the patch)
- declare some annotation (for instance by activating the Translate extension)
- create wikitext content with said annotation, in a way that the annotation doesn't wrap a well-nested range, for instance
* hello <translate> world some paragraph</translate> and some more