.dataset.type is not available on IE8