Page MenuHomePhabricator

forcetoc meta with data-parsoid from a notoc meta gets serialized to __NOTOC__ instead of __FORCETOC__
Closed, ResolvedPublic

Description

If I have a wiki page containing NOTOC, Parsoid outputs:

<meta property="mw:PageProp/notoc" data-parsoid='{"src":"NOTOC","magicSrc":"NOTOC","dsr":[966,975,null,null]}'>

When VE edits this and changes the property attribute from notoc to forcetoc, we end up serializing:

<meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"NOTOC","magicSrc":"NOTOC","dsr":[966,975,null,null]}'>

Which should serialize to FORCETOC, but instead the data-parsoid wins and this serializes to NOTOC.


Version: unspecified
Severity: normal

Details

Reference
bz59672

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:19 AM
bzimport set Reference to bz59672.

Change 109835 had a related patch set uploaded by Arlolra:
Prefer magic word from property to data-parsoid

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

Change 109835 merged by jenkins-bot:
Prefer magic word from property to data-parsoid

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