Last modified: 2013-06-11 23:37:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42438, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40438 - Parsoid: round-trip extra HTML end tags
Parsoid: round-trip extra HTML end tags
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks: 39567
  Show dependency treegraph
 
Reported: 2012-09-22 00:32 UTC by Gabriel Wicke
Modified: 2013-06-11 23:37 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gabriel Wicke 2012-09-22 00:32:49 UTC
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.
Comment 1 Gabriel Wicke 2012-09-22 00:34:16 UTC
This is low priority as the semantics (produced HTML DOM) don't change. The dirty diff portion can likely be mitigated with selective serialization.
Comment 2 Gabriel Wicke 2013-06-11 23:37:06 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links