From 514bdd184d7e736b393210524f996c51059fcedb Mon Sep 17 00:00:00 2001 From: Stephan Gambke Date: Tue, 30 Oct 2012 20:06:16 +0100 Subject: [PATCH] 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 ), -- 2.20.1