From 0c3a2e24462ab597f6e6e0eef0081d48092fc0fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 18 Apr 2017 18:32:34 +0200 Subject: [PATCH] EditPage: Restore IE 6 compatibility for OOUI-style buttons Follow-up to 97d7de0b84ef65094108fbcf62ffcc1c55d75345. Bug: T163219 Change-Id: Ifb5145c631ce1a3aa7e51956fab3ec7da8b994d2 --- includes/EditPage.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/EditPage.php b/includes/EditPage.php index f97f16469a..a9a5efa103 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -4308,6 +4308,8 @@ HTML if ( $this->oouiEnabled ) { $saveConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['save'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'flags' => [ 'constructive', 'primary' ], 'label' => $this->context->msg( $buttonLabelKey )->text(), 'infusable' => true, @@ -4329,6 +4331,8 @@ HTML if ( $this->oouiEnabled ) { $previewConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['preview'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'label' => $this->context->msg( 'showpreview' )->text(), 'infusable' => true, 'type' => 'submit' @@ -4347,6 +4351,8 @@ HTML if ( $this->oouiEnabled ) { $diffConfig = OOUI\Element::configFromHtmlAttributes( $attribs ); $buttons['diff'] = new OOUI\ButtonInputWidget( [ + // Support: IE 6 – Use , otherwise it can't distinguish which button was clicked + 'useInputTag' => true, 'label' => $this->context->msg( 'showdiff' )->text(), 'infusable' => true, 'type' => 'submit', -- 2.20.1