7754: fix html selection