I had the same problem with the role tag and then I found this piece of code, since I was using the sidebard to add the search this worked PERFECTLY:
ob_start();
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Left Side Index") ) : endif;
$output = ob_get_contents();
ob_end_clean();
echo str_replace('role="search"', '', $output);
just modify it to your needs (e.g change the name of the sidebar)
I found this code on this site hope it works for you 🙂