code: function isHtmlNode(node) {
          var ns;
          return typeof (ns = node.namespaceURI) == UNDEF || (ns === null || ns == "http://www.w3.org/1999/xhtml");
      }
docs: Opera 11 puts HTML elements in the null namespace, it seems, and IE 7 has undefined namespaceURI