http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83420

Revision: 83420
Author:   krinkle
Date:     2011-03-06 23:25:33 +0000 (Sun, 06 Mar 2011)
Log Message:
-----------
Fix for IE7, jQuery magic doesn't help here, it needs to be valid html, 
shorthand doesn't work in all browsers

Modified Paths:
--------------
    trunk/phase3/resources/mediawiki.util/mediawiki.util.js

Modified: trunk/phase3/resources/mediawiki.util/mediawiki.util.js
===================================================================
--- trunk/phase3/resources/mediawiki.util/mediawiki.util.js     2011-03-06 
23:22:13 UTC (rev 83419)
+++ trunk/phase3/resources/mediawiki.util/mediawiki.util.js     2011-03-06 
23:25:33 UTC (rev 83420)
@@ -344,7 +344,7 @@
                                return null;
                        }
                        // Setup the anchor tag
-                       var $link = $( '<a />' ).attr( 'href', href ).text( 
text );
+                       var $link = $( '<a></a>' ).attr( 'href', href ).text( 
text );
                        if ( tooltip ) {
                                $link.attr( 'title', tooltip );
                        }
@@ -373,11 +373,11 @@
                                if ( $ul.length === 0 ) {
                                        // If there's no <div> inside, append 
it to the portlet directly
                                        if ( $portlet.find( 'div:first' 
).length === 0 ) {
-                                               $portlet.append( '<ul/>' );
+                                               $portlet.append( '<ul></ul>' );
                                        } else {
                                                // otherwise if there's a div 
(such as div.body or div.pBody)
                                                // append the <ul> to last 
(most likely only) div
-                                               $portlet.find( 'div' ).eq( -1 
).append( '<ul/>' );
+                                               $portlet.find( 'div' ).eq( -1 
).append( '<ul></ul>' );
                                        }
                                        // Select the created element
                                        $ul = $portlet.find( 'ul' ).eq( 0 );
@@ -392,7 +392,7 @@
 
                                // Wrap the anchor tag in a <span> and create a 
list item for it
                                // and back up the selector to the list item
-                               var $item = $link.wrap( '<li><span /></li>' 
).parent().parent();
+                               var $item = $link.wrap( 
'<li><span></span></li>' ).parent().parent();
 
                                // Implement the properties passed to the 
function
                                if ( id ) {


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to