Last modified: 2011-06-24 19:55:04 UTC
By default, the function mw.util.addPortletLink wraps a link in <li><span></span></li>, when in fact, the only place where this is needed is in a vector tab. Attached patch only wraps a link inside a span when it as placed in a menu with a vectorTabs class, resulting in a consistent DOM structure amongst different portlet in a menu section.
Created attachment 8699 [details] Patch for mediawiki.util.js
Created attachment 8700 [details] Patch for mediawiki.util.js Optimized code to only call .wrap once.
Changing back to need-review because I changed the code while Krinkle reviewed the patch. Just going by the book...
Looks good, I'll adjust the test suite first to test for this, then apply the patch.
Tests introduced in r90728. Bug fixed in r90729.