if ( $this->mParent instanceof OOUIHTMLForm ) {
throw new MWException( 'HTMLMultiSelectField#getOneCheckbox() is not supported' );
} else {
- $elementFunc = [ 'Html', $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ];
+ $elementFunc = [ Html::class, $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ];
$checkbox =
Xml::check( "{$this->mName}[]", $checked, $attribs ) .
' ' .
if ( $sectionLabel ) {
$out[] = new OOUI\FieldsetLayout( [
'items' => [ $widget ],
- 'label' => $sectionLabel,
+ 'label' => new OOUI\HtmlSnippet( $sectionLabel ),
] );
} else {
$out[] = $widget;