X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2FOOUIHTMLForm.php;h=e47de61a4c584e3f8a25f363b1d45dd6ff28a633;hp=ed998029948702d2aa81a6bcdcd9294bcc17df3c;hb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;hpb=999351249b1810385ea2818ec445f784b24b72af diff --git a/includes/htmlform/OOUIHTMLForm.php b/includes/htmlform/OOUIHTMLForm.php index ed99802994..e47de61a4c 100644 --- a/includes/htmlform/OOUIHTMLForm.php +++ b/includes/htmlform/OOUIHTMLForm.php @@ -66,7 +66,10 @@ class OOUIHTMLForm extends HTMLForm { } if ( isset( $this->mSubmitTooltip ) ) { - $attribs += Linker::tooltipAndAccesskeyAttribs( $this->mSubmitTooltip ); + $attribs += [ + 'title' => Linker::titleAttrib( $this->mSubmitTooltip ), + 'accessKey' => Linker::accesskey( $this->mSubmitTooltip ), + ]; } $attribs['classes'] = [ 'mw-htmlform-submit' ]; @@ -177,7 +180,7 @@ class OOUIHTMLForm extends HTMLForm { 'items' => $fieldsHtml, ]; if ( $sectionName ) { - $config['id'] = Sanitizer::escapeId( $sectionName ); + $config['id'] = Sanitizer::escapeIdForAttribute( $sectionName ); } if ( is_string( $this->mWrapperLegend ) ) { $config['label'] = $this->mWrapperLegend;