//Detect IE10 and set an appropriate class, considering that IE10 doesn't have conditional classes if (/*@cc_on!@*/false && document.documentMode === 10) { document.documentElement.className+=' ie-10'; }