* prevent minor W3C validator/tidy error on Special:Booksources about nesting of...
authorNick Jenkins <nickj@users.mediawiki.org>
Tue, 19 Dec 2006 05:35:35 +0000 (05:35 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Tue, 19 Dec 2006 05:35:35 +0000 (05:35 +0000)
* stop minor tidy warning: "<input> attribute 'size' lacks value", by setting size to 20 (which allows enough visual field width for 10 ISBN digits + some leeway for extra dashes and spaces and whatnot).

includes/SpecialBooksources.php

index 85b34ca..697edca 100644 (file)
@@ -58,10 +58,10 @@ class SpecialBookSources extends SpecialPage {
                $form  = '<fieldset><legend>' . wfMsgHtml( 'booksources-search-legend' ) . '</legend>';
                $form .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );
                $form .= Xml::hidden( 'title', $title->getPrefixedText() );
-               $form .= '<p>' . Xml::inputLabel( wfMsg( 'booksources-isbn' ), 'isbn', 'isbn', false, $this->isbn );
+               $form .= '<p>' . Xml::inputLabel( wfMsg( 'booksources-isbn' ), 'isbn', 'isbn', 20, $this->isbn );
                $form .= '&nbsp;' . Xml::submitButton( wfMsg( 'booksources-go' ) ) . '</p>';
-               $form .= '</fieldset>';
                $form .= Xml::closeElement( 'form' );
+               $form .= '</fieldset>';
                return $form;
        }