// unhide portlet if it was hidden before
root.className = root.className.replace( /(^| )emptyPortlet( |$)/, "$2" );
- var span = document.createElement( 'span' );
- span.appendChild( document.createTextNode( text ) );
-
var link = document.createElement( 'a' );
- link.appendChild( span );
+ link.appendChild( document.createTextNode( text ) );
link.href = href;
+ // Wrap in a span - make it work with vector tabs and has no effect on any other portlets
+ var span = document.createElement( 'span' );
+ span.appendChild( link );
+
var item = document.createElement( 'li' );
- item.appendChild( link );
+ item.appendChild( span );
if ( id ) {
item.id = id;
}