After Change-Id: Ibc86c2dc33a8a3ba378138525c2523ba69bca8f1, I get
"TypeError: Cannot read property 'parentNode' of undefined"
for the command
mw.util.addPortletLink(
'p-lang', '#', 'TEST', 't-test', 'TEST', 'T', $( '.wbc-editpage' ).first()
);
when I use it on
https://en.wikipedia.org/wiki/Main_Page
If the user passes a jQuery object, but it is empty, the function should still default to $ul.append( $item ).
Version: 1.22.0
Severity: normal