check line content before adding it
use newer IE10+ version first if available

closes: #2528