Feed <!-- to it.
Version: unspecified
Severity: minor
Feed <!-- to it.
Version: unspecified
Severity: minor
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | • GWicke | T43230 Unclosed comment get closed in round-trip | |||
Resolved | • GWicke | T43948 Selective serialization (tracking) | |||
Resolved | • GWicke | T45135 VisualEditor: Deleting content between a heading and an alien fails? | |||
Resolved | Catrope | T43905 VisualEditor: Parsoid is sent text outside of any node for the first line of a new article | |||
Resolved | Catrope | T43947 VisualEditor: Restore lost Change Markers |
We recently added support for round-tripping of autoclosed tags (just <b> for example), but this relies on internal round-trip data on the element. Comments do not support rt data, so we'd have to wrap the comment in special elements (a span for example), which would be quite ugly.
We are working on selective serialization (only serialize modified parts of the document) to avoid dirty diffs from this kind of issue. This should also prevent auto-closed comments from showing up in diffs unless the last paragraph is edited.
I actually doubt that there is a good use case for supporting this. Afaik the main case where this can happen in practice is when an unclosed comment is at the end of the input. In that case closing the comment introduces a small diff, but is otherwise harmless.
Closing this as wontfix, please reopen if you see a good reason for working on this.