From: Stephan Gambke Date: Tue, 30 Oct 2012 19:06:16 +0000 (+0100) Subject: Set default type attribute for button html elements X-Git-Tag: 1.31.0-rc.0~21648^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=514bdd184d7e736b393210524f996c51059fcedb;p=lhc%2Fweb%2Fwiklou.git Set default type attribute for button html elements According to standard the default type for ', + $cases[] = array( '', 'button', array( 'formaction' => 'GET' ) ); - $cases[] = array( '', + $cases[] = array( '', 'button', array( 'formenctype' => 'application/x-www-form-urlencoded' ) ); - $cases[] = array( '', - 'button', array( 'type' => 'submit' ) - ); $cases[] = array( '', 'canvas', array( 'height' => '150' ) @@ -560,6 +557,13 @@ class HtmlTest extends MediaWikiTestCase { 'input', array( 'type' => 'range', 'value' => '' ), ); + # ', + 'button', array( 'type' => 'submit' ), + 'According to standard the default type is "submit". Depending on compatibility mode IE might use "button", instead.', + ); + # ', 'select', array( 'size' => '4', 'multiple' => true ),