Page MenuHomePhabricator

DomSourceRange serializes with null entries
Open, MediumPublic

Description

For example, data-parsoid='{\"dsr\":[147,147,null,null]}'

We should consider dropping the openWidth/closeWidth when they aren't present.

See the discussion at https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/530980/19/tests/parserTests-php-blacklist.json#602

Event Timeline

ssastry moved this task from Deployment to Post-Port Work on the Parsoid-PHP board.
Arlolra triaged this task as Medium priority.Oct 11 2019, 11:30 PM

There's a bit of an analysis / discussion of what it means for the open / close widths to be null in,
https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/606035/3/src/Wt2Html/PP/Handlers/DisplaySpace.php#13

since calls to innerStart/End coalesce them to 0 but they fail an isValid check.