workaround for hasAttribute() calls found in custom-select

hasAttribute only supported on IE8+ so using a getAttribute workaround.