Merge "Html: Add buttonAttributes() more diligently"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 9 Jun 2015 22:24:44 +0000 (22:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Jun 2015 22:24:44 +0000 (22:24 +0000)
includes/Html.php

index 6da70b1..235096d 100644 (file)
@@ -715,6 +715,9 @@ class Html {
                if ( in_array( $type, array( 'text', 'search', 'email', 'password', 'number' ) ) ) {
                        $attribs = self::getTextInputAttributes( $attribs );
                }
+               if ( in_array( $type, array( 'button', 'reset', 'submit' ) ) ) {
+                       $attribs = self::buttonAttributes( $attribs );
+               }
                return self::element( 'input', $attribs );
        }