'type' => 'search',
'name' => 'search',
'placeholder' => wfMessage( 'searchsuggest-search' )->text(),
- 'value' => $this->get( 'search', '' ),
];
$realAttrs = array_merge( $realAttrs, Linker::tooltipAndAccesskeyAttribs( 'search' ), $attrs );
return Html::element( 'input', $realAttrs );
}
foreach ( $validFooterIcons as $blockName => $footerIcons ) {
$html .= Html::openElement( 'div', [
- 'id' => 'f-' . Sanitizer::escapeId( $blockName ) . 'ico',
+ 'id' => Sanitizer::escapeIdForAttribute( "f-{$blockName}ico" ),
'class' => 'footer-icons'
] );
foreach ( $footerIcons as $icon ) {
foreach ( $validFooterLinks as $aLink ) {
$html .= Html::rawElement(
'li',
- [ 'id' => Sanitizer::escapeId( $aLink ) ],
+ [ 'id' => Sanitizer::escapeIdForAttribute( $aLink ) ],
$this->get( $aLink )
);
}
$out .= Html::rawElement(
'div',
[
- 'id' => Sanitizer::escapeId( "mw-indicator-$id" ),
+ 'id' => Sanitizer::escapeIdForAttribute( "mw-indicator-$id" ),
'class' => 'mw-indicator',
],
$content