Last modified: 2014-09-12 20:22:40 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 T69452, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67452 - Empty elements in DOM: PHP parser+tidy strips them; Parsoid doesn't
Empty elements in DOM: PHP parser+tidy strips them; Parsoid doesn't
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Lowest normal
: ---
Assigned To: ssastry
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-03 04:32 UTC by ssastry
Modified: 2014-09-12 20:22 UTC (History)
2 users (show)

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


Attachments

Description ssastry 2014-07-03 04:32:56 UTC
The infobox in itwiki:Luna has several empty rows "....|-\n|-\n....". PHP parser + Tidy combo strips them whereas Parsoid doesn't. This causes rendering visual diffs on itwiki:Luna

Reproducible with a simple test case: "{|\n|-\n|-\n|-\n|foo\n}"

What is the right behavior here?
Comment 1 ssastry 2014-08-20 22:21:41 UTC
See https://gerrit.wikimedia.org/r/#/c/155348/ for a WIP patch.
Comment 2 ssastry 2014-09-12 20:22:40 UTC
This patch is now merged .. the only remaining issue are empty elements found in top-level content. We are going to leave them behind for now so that editors can edit them in VE (rather than hide them and make them uneditable) and maybe delete them.

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


Navigation
Links