Author: rockmfr
Description:
When using the API parser (see URL above for example), HTMLTidy is not used on non-cached pages, thus returning different results depending on whether or not the page happens to be in the cache at the time. Also, the limit report is not displayed for non-cached pages, though I don't particularly care about this.
From what I can see, it seems like it would be a simple fix in ApiParse.php.
Change...
$p_result = $wgParser->parse($articleObj->getContent(), $titleObj, new ParserOptions());
to...
$popts = new ParserOptions();
$popts->setTidy(true);
$popts->enableLimitReport();
$p_result = $wgParser->parse($articleObj->getContent(), $titleObj, $popts);
Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/api.php?action=parse&format=xml&page=Wikipedia:Selected_anniversaries/June_6