function detectIeVersionByBehavior() {
  if (document.all) {
    if (!document.compatMode) {
      return 5;
    }
    if (!window.XMLHttpRequest) {
      return 6;
    }
    if (!document.querySelector) {
      return 7;
    }
    if (!document.addEventListener) {
      return 8;
    }
    if (!window.atob) {
      return 9;
    }

    return 10;
  }
  if (!(window.ActiveXObject) && 'ActiveXObject' in window) {
    return 11;
  }

  return NOT_IE;
}
Detect the current IE version using runtime behavior, returns 0 if a version
of IE is not detected.
@return {number}