Page MenuHomePhabricator

Parsoid closes unclosed <del> tag while Tidy doesn't
Closed, DeclinedPublic


Parsoid version ([[|visualeditor API module result]]) closes unclosed <del> tag on end of paragraph, while the default page version (Tidy) doesn’t. It’s very confusing as the new wikitext editor uses Parsoid for preview, but the Tidy version appears after saving.

Event Timeline

This is not specific to Parsoid, but HTML5 vs HTML4. We are in the process of replacing Tidy with Remex (see

You can see that with Remex, the problem you see with Parsoid will show up as well.

The HTML5 spec ( ) says that the del element should not cross (implied) paragraph boundaries. So, that is what Parsoid and RemexHTML do. So, the unclosed <del> tag gets closed at the end of the paragraph.

The right fix here is to update the wikitext to add these tags around every paragraph that needs them.