Add distinct labels on the did-you-mean suggestion elements
so anyone who wants to detect or identify them can.
Bug: T110359
Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07
$suggest = Linker::linkKnown(
$this->getPageTitle(),
$textMatches->getSuggestionSnippet() ?: null,
- array(),
+ array( 'id' => 'mw-search-DYM-suggestion' ),
$stParams
);
$rewritten = Linker::linkKnown(
$this->getPageTitle(),
$textMatches->getQueryAfterRewriteSnippet() ?: null,
- array(),
+ array( 'id' => 'mw-search-DYM-rewritten' ),
$stParams
);
$original = Linker::linkKnown(
$this->getPageTitle(),
htmlspecialchars( $term ),
- array(),
+ array( 'id' => 'mw-search-DYM-original' ),
$stParams
);