there is a Confirmed bug in IE10 compatibility mode that won\'t be fixed for IE10:
In IE10 in compatibility to IE8 $element.get(0).getAttribute(
I changed mine to call
$element.get(0).hasAttribute("required")
before checking the value with getAttribute()