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

           Summary: Parser::extractSection() should not use same output
                    type as Parser::preSaveTransform()
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: conrad.ir...@gmail.com
            Blocks: 93


Created an attachment (id=7155)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7155)
implements described change

To fix bug 93 it is necessary to change the behaviour of <includeonly> tags
during preSaveTransform() but not during extractSections(). This could be done
either by adding a new preprocessor flag, or by adding a new output type. 

The latter is a better choice, as the current situation where OT_WIKI appears
to be used for two things but is only used for one is very counter intuitive.
Besides, I can't think of a good name for a flag to add to
PPFrame::RECOVER_ORIG to indicate "<ignore>'s the contents of top-level
<includeonly> tags instead of <ignore>ing the tags themselves".

OT_WIKI is currently used only for the PST. extractSections() overrides all
power that OT_WIKI might have by setting PPFrame::RECOVER_ORIG.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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