https://bugzilla.wikimedia.org/show_bug.cgi?id=59672

       Web browser: ---
            Bug ID: 59672
           Summary: forcetoc meta with data-parsoid from a notoc meta gets
                    serialized to __NOTOC__ instead of __FORCETOC__
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: serializer
          Assignee: gwi...@wikimedia.org
          Reporter: roan.katt...@gmail.com
                CC: ssas...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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__.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to