On Mon, Sep 7, 2009 at 1:37 AM, Dmitriy Sintsov questpc@rambler.ru wrote:
This is correct, but why there were some toc-related javascript inserted into page parsed by command line script?
To allow it to be collapsed by the user.
Since then command line scripts are learned to understand javascript? Thats not a browser.
MediaWiki's HTML output is intended for browsers, not command line scripts. If you're trying to parse HTML using a command-line script, you should expect it to include things like scripts, which are after all a legitimate part of HTML. Why would you expect Parser::parse() to produce output appropriate for scripts?