Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -344,7 +344,7 @@ |
345 | 345 | return null; |
346 | 346 | } |
347 | 347 | // Setup the anchor tag |
348 | | - var $link = $( '<a />' ).attr( 'href', href ).text( text ); |
| 348 | + var $link = $( '<a></a>' ).attr( 'href', href ).text( text ); |
349 | 349 | if ( tooltip ) { |
350 | 350 | $link.attr( 'title', tooltip ); |
351 | 351 | } |
— | — | @@ -373,11 +373,11 @@ |
374 | 374 | if ( $ul.length === 0 ) { |
375 | 375 | // If there's no <div> inside, append it to the portlet directly |
376 | 376 | if ( $portlet.find( 'div:first' ).length === 0 ) { |
377 | | - $portlet.append( '<ul/>' ); |
| 377 | + $portlet.append( '<ul></ul>' ); |
378 | 378 | } else { |
379 | 379 | // otherwise if there's a div (such as div.body or div.pBody) |
380 | 380 | // append the <ul> to last (most likely only) div |
381 | | - $portlet.find( 'div' ).eq( -1 ).append( '<ul/>' ); |
| 381 | + $portlet.find( 'div' ).eq( -1 ).append( '<ul></ul>' ); |
382 | 382 | } |
383 | 383 | // Select the created element |
384 | 384 | $ul = $portlet.find( 'ul' ).eq( 0 ); |
— | — | @@ -392,7 +392,7 @@ |
393 | 393 | |
394 | 394 | // Wrap the anchor tag in a <span> and create a list item for it |
395 | 395 | // and back up the selector to the list item |
396 | | - var $item = $link.wrap( '<li><span /></li>' ).parent().parent(); |
| 396 | + var $item = $link.wrap( '<li><span></span></li>' ).parent().parent(); |
397 | 397 | |
398 | 398 | // Implement the properties passed to the function |
399 | 399 | if ( id ) { |