code: function(node, uri, name) {
          var found = false;
          if(node.hasAttributeNS) {
              found = node.hasAttributeNS(uri, name);
          } else {
              found = !!this.getAttributeNodeNS(node, uri, name);
          }
          return found;
      }
docs: APIMethod: hasAttributeNS
  Determine whether a node has a particular attribute matching the given
  name and namespace.
  
  Parameters:
  node - {Element} Node on which to search for an attribute.
  uri - {String} Namespace URI.
  name - {String} Local name of the attribute (without the prefix).
  
  Returns:
  {Boolean} The node has an attribute matching the name and namespace.