Last modified: 2013-08-16 17:00:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53387, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51387 - Update normalization routines to recognize php and parsoid output for categories as equivalent
Update normalization routines to recognize php and parsoid output for categor...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.22.0
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-15 19:06 UTC by ssastry
Modified: 2013-08-16 17:00 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description ssastry 2013-07-15 19:06:54 UTC
For [[Category:Foo]], PHP parser emits:
<a href="/wiki/Category:Foo" title="Category:Foo">Foo</a>

Parsoid emits:
<link rel="mw:WikiLink/Category" href="./Category:Foo">

This difference leads to artificial test failures in parser test runs.  Update our normalization routines to recognize them as equivalent.
Comment 1 Gabriel Wicke 2013-07-15 22:03:46 UTC
Normally the PHP parser emits nothing for categories. Instead, they are rendered in a box outside the content area. In parserTests, there is an option that makes the PHP parser spit out the HTML you mention. Since those are parserTests-specific we might be able to change the PHP parser's output to match ours in this case.
Comment 2 C. Scott Ananian 2013-08-16 17:00:54 UTC
Taking the bug and switching the component.  No guarantee that I'll work on it any time soon, but I often have my hands in the guts of parsertests.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links