* Aryeh Gregor <[email protected]> [Sun, 6 Sep 2009 06:05:37 
-0400]:
> On Sat, Sep 5, 2009 at 7:46 AM, Platonides <[email protected]> 
wrote:
> > Javascript is only used for collapsation.
> > The TOC is generated by PHP, as you can test by browsing the page 
with
> > javascript disabled.
> >
> > The main TOC handling is at includes/parser/parser.php on function
> > formatHeadings
>
> This is correct.  Although it's includes/parser/Parser.php (not all of
> us use Windows or Mac! :P).
>
This is correct, but why there were some toc-related javascript inserted 
into page parsed by command line script?

My code:

                $text = strip_tags( $text ) . "\n__NOTOC__";  // strip 
xml hook tags and suppress TOC
                $parser_output = $this->Parser->parse( $text, $title, 
$this->mParserOptions ); // parse

Since then command line scripts are learned to understand javascript? 
Thats not a browser.
Dmitriy

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

Reply via email to