code: function isHtmlNamespace(node) {
              var ns;
              return typeof node.namespaceURI == UNDEF || ((ns = node.namespaceURI) === 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