Page MenuHomePhabricator

Paragraph wrapping bug when inline tags wrap block tags
Closed, ResolvedPublic


In 8a7195d6b9557cc57061d18d5a643a424ff44f72, as part of the fix for T66901: Paragraph wrapping bug, I introduced a bug for the following test case:

[subbu@earth parsoid] echo '<span><div>x</div></span>' | parse.js --normalize

whereas PHP Parser + tidy combo only generates


The p-tags are introduce only when there is content after the <span> or before the </span> tags. So, my p-wrapper fix overreached a bit.

This is now introducing another set of false positives in T176363


Related Gerrit Patches:
mediawiki/services/parsoid : masterP-wrapper: Generalize removal of useless p-wrappers

Event Timeline

ssastry created this task.Sep 29 2017, 9:13 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 29 2017, 9:13 PM
ssastry triaged this task as High priority.Sep 29 2017, 9:14 PM
ssastry added a project: Parsoid.

Change 381518 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Apply removeUselessPWrappers to all tags except void tags

Change 381518 merged by jenkins-bot:
[mediawiki/services/parsoid@master] P-wrapper: Generalize removal of useless p-wrappers

Arlolra closed this task as Resolved.Oct 3 2017, 7:01 PM

Mentioned in SAL (#wikimedia-operations) [2017-10-04T21:09:21Z] <arlolra> Updated Parsoid to 477942c3 (T177115)