Page MenuHomePhabricator

Parsoid: round-trip extra HTML end tags
Closed, ResolvedPublic

Description

Round-trip something like '<div></div></div>'.

The treebuilder will strip end tags without a matching start tag, which will leave just the end-tag shadowing meta tags. This should allow us to figure out that an end tag was stripped in between. The tsr of the metas should give us the source of this tag.


Version: unspecified
Severity: normal

Details

Reference
bz40438

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:05 AM
bzimport added a project: Parsoid-DOM.
bzimport set Reference to bz40438.

This is low priority as the semantics (produced HTML DOM) don't change. The dirty diff portion can likely be mitigated with selective serialization.

We round-trip this in unmodified content using selective serialization. In modified content the introduction of a minor and local normalization diff is acceptable in our opinion. Closing as fixed.