X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLRadioField.php;h=c98e1ec07b0873edd2e54fad154201d77818d84f;hb=7b27f210ba493283a635b1cc72edc173de05044f;hp=06ec3722edbe57a2b43780ff190027c8ac5c6ac9;hpb=ff70e103def9601f40836cbd9022e1267200510e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLRadioField.php b/includes/htmlform/fields/HTMLRadioField.php index 06ec3722ed..c98e1ec07b 100644 --- a/includes/htmlform/fields/HTMLRadioField.php +++ b/includes/htmlform/fields/HTMLRadioField.php @@ -72,10 +72,6 @@ class HTMLRadioField extends HTMLFormField { ) ); } - protected function shouldInfuseOOUI() { - return true; - } - public function formatOptions( $options, $value ) { global $wgUseMediaWikiUIEverywhere; @@ -90,7 +86,7 @@ class HTMLRadioField extends HTMLFormField { $html .= Html::rawElement( 'h1', [], $label ) . "\n"; $html .= $this->formatOptions( $info, $value ); } else { - $id = Sanitizer::escapeId( $this->mID . "-$info" ); + $id = Sanitizer::escapeIdForAttribute( $this->mID . "-$info" ); $classes = [ 'mw-htmlform-flatlist-item' ]; if ( $wgUseMediaWikiUIEverywhere || $this->mParent instanceof VFormHTMLForm ) { $classes[] = 'mw-ui-radio';