Be careful here, as a null ref here (which will happen in ie4/5 at least) will ruin the entire detection. I would do:

    try {
      var badNode = document.createElement && document.createElement("badname");
      if (badNode && badNode.nodeName === "BADNAME") { ua_version = "10.0"; }
    } catch(e){}