On Thu, Nov 12, 2009 at 5:00 AM, Mark Clements (HappyDog)
<[email protected]> wrote:
<snip>
>> This was changed during the parser rewrite several versions ago.  The
>> restructuring of the parser meant that strip markers are now handled
>> differently and can't be routed around using that hook anymore.
>> ParserAfterStrip is essentially a deprecated legacy that now functions
>> the same way as ParserBeforeStrip.
>
> I have updated the page on MW.org [1] to explain this.  However, can someone
> confirm that this is a deliberate change?  To me it seems like a regression
> that has not been spotted!  (Or is it that the parser has changed to the
> point where it is no longer possible to have a ParserAfterStrip hook?)

It was a willful change.  The parser rewrite eliminated stripping as a
distinct step.  Originally nowikis and the like were removed and
replaced with strip markers at the beginning of parser processing, so
there was a distinct parser step involved with stripping.  The current
parser no longer takes this approach and simply adds strip markers as
needed whenever it encounters them during processing of the page.
Since this occurs within the flow of the rest of the parser
operations, there no longer is a point where the parser has done only
strip tag removal, and hence there is no point for a ParserAfterStrip
to attach itself to.

-Robert Rohde

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to