(bug 40384) Move width/height from button to img
authorKevin Israel <pleasestand@live.com>
Fri, 28 Sep 2012 02:53:06 +0000 (22:53 -0400)
committerKevin Israel <pleasestand@live.com>
Fri, 28 Sep 2012 02:53:06 +0000 (22:53 -0400)
commit6529547f930f5a89fe64324e7520aee5877bacfc
tree56fba2912e4104e325edb4a70cd545f894be230d
parent74760579254fd51e9872ffbf4fb46307f0cf62f5
(bug 40384) Move width/height from button to img

The fix for bug 34768 (r112710, regarding the lack of width and height
attributes for the Vector skin's search button) failed to include the
corresponding changes to SkinTemplate.php.

Because BaseTemplate::makeSearchButton() only special cased the src and
alt attributes, the width and height incorrectly went on the button
element, causing HTML validation errors (and also having no effect).
This patch moves the width and height attributes to the img element
in a similar fashion to src and alt.

Change-Id: I3561fc79364ce43521823bad691c9b61f87ba375
includes/SkinTemplate.php