fix cross-browser highlight compatibility