Remove stupid one-cell table
authorChad Horohoe <chadh@wikimedia.org>
Tue, 5 Nov 2013 23:34:07 +0000 (15:34 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 6 Nov 2013 17:44:37 +0000 (09:44 -0800)
Change-Id: Ia24c68378385adfd2a5c0bf7b9646bb1edc3d7e4

includes/specials/SpecialSearch.php

index d5a6b29..8c8de8e 100644 (file)
@@ -318,13 +318,12 @@ class SpecialSearch extends SpecialPage {
                        )
                );
                $out->addHtml(
-                       Xml::openElement( 'table', array( 'id' => 'mw-search-top-table', 'cellpadding' => 0, 'cellspacing' => 0 ) ) .
-                       Xml::openElement( 'tr' ) .
-                       Xml::openElement( 'td' ) . "\n" .
+                       # This is an awful awful ID name. It's not a table, but we
+                       # named it poorly from when this was a table so now we're
+                       # stuck with it
+                       Xml::openElement( 'div', array( 'id' => 'mw-search-top-table' ) ) .
                        $this->shortDialog( $term ) .
-                       Xml::closeElement( 'td' ) .
-                       Xml::closeElement( 'tr' ) .
-                       Xml::closeElement( 'table' )
+                       Xml::closeElement( 'div' )
                );
 
                // Sometimes the search engine knows there are too many hits