Page MenuHomePhabricator

{{DEFAULTSORT: ... }} renders differently in Parsoid/PHP compared to Parsoid/JS
Closed, ResolvedPublicBUG REPORT

Description

The API (standalone) version of Parsoid has no difference.

[subbu@earth:~/work/wmf/parsoid] echo "{{DEFAULTSORT:Hospet}}" | php bin/parse.php --pageName Hospet --body_only
<meta property="mw:PageProp/categorydefaultsort" content="Hospet" data-parsoid='{"src":"{{DEFAULTSORT:Hospet}}","dsr":[0,22,null,null]}'/>

[subbu@earth:~/work/wmf/parsoid] echo "{{DEFAULTSORT:Hospet}}" | node bin/parse.js --pageName Hospet --body_only
<meta property="mw:PageProp/categorydefaultsort" content="Hospet" data-parsoid='{"src":"{{DEFAULTSORT:Hospet}}","dsr":[0,22,null,null]}'/>

But, both on my local wiki on my laptop and on scandium with production wikis, fetching the HTML for pages shows this diff (the top one is Parsoid/PHP and the bottom one is Parsoid/JS).

< <span about="#mwtXX" typeof="mw:Transclusion" data-parsoid='{"dsr":[342397,342437],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"DEFAULTSORT:Obama, Barack Hussein II","href":"./Template:DEFAULTSORT:Obama,_Barack_Hussein_II"},"params":{},"i":0}}]}'>
< </span>
---
> <meta property="mw:PageProp/categorydefaultsort" content="Obama, Barack Hussein II" data-parsoid='{"src":"{{DEFAULTSORT:Obama, Barack Hussein II}}","dsr":[342397,342437]}'/>

Details

Related Gerrit Patches:

Event Timeline

ssastry triaged this task as Medium priority.Oct 8 2019, 9:38 PM
ssastry created this task.
Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald TranscriptOct 8 2019, 9:38 PM
ssastry claimed this task.Oct 8 2019, 11:39 PM

Change 541686 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Bug fix populating functionhooks in SiteConfig + bunch of cleanup

https://gerrit.wikimedia.org/r/541686

Change 541686 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Bug fix populating functionhooks in SiteConfig + bunch of cleanup

https://gerrit.wikimedia.org/r/541686

ssastry closed this task as Resolved.Oct 9 2019, 4:13 PM