(bug 40214) Category pages no longer use deprecated "width" HTML attribute
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 14 Sep 2012 07:29:22 +0000 (09:29 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Fri, 14 Sep 2012 12:28:16 +0000 (14:28 +0200)
Change-Id: Ie1a4a1ca81874cd2ffd1012bf6468a69729e3a62

RELEASE-NOTES-1.20
includes/CategoryViewer.php

index 6f0da7e..e2e46f6 100644 (file)
@@ -243,6 +243,7 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki.
 * (bug 39635) PostgreSQL LOCK IN SHARE MODE option is a syntax error.
 * (bug 36329) Accesskey tooltips for Firefox 14 on Mac should use "ctrl-option-" prefix.
 * (bug 32552) Drop unused database field cat_hidden from table category.
+* (bug 40214) Category pages no longer use deprecated "width" HTML attribute.
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
index 5f4aaea..3bb2bc9 100644 (file)
@@ -504,11 +504,11 @@ class CategoryViewer extends ContextSource {
                # Split into three columns
                $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ );
 
-               $ret = '<table width="100%"><tr style="vertical-align: top;">';
+               $ret = '<table style="width: 100%;"><tr style="vertical-align: top;">';
                $prevchar = null;
 
                foreach ( $columns as $column ) {
-                       $ret .= '<td width="33.3%">';
+                       $ret .= '<td style="width: 33.3%;">';
                        $colContents = array();
 
                        # Kind of like array_flip() here, but we keep duplicates in an