function(name, namespace) {
        var dom = this.dom;

        return dom.getAttributeNS(namespace, name) || dom.getAttribute(namespace + ":" + name)
               || dom.getAttribute(name) || dom[name];
    }
function(name, namespace) {
        var dom = this.dom;

        return dom.getAttributeNS(namespace, name) || dom.getAttribute(namespace + ":" + name)
               || dom.getAttribute(name) || dom[name];
    }
function ( name , namespace ) { var dom = this . dom ; return dom . getAttributeNS ( namespace , name ) || dom . getAttribute ( namespace + ":" + name ) || dom . getAttribute ( name ) || dom [ name ] ; }
Returns the value of an attribute from the element's underlying DOM node.
@param {String} name The attribute name.
@param {String} [namespace] The namespace in which to look for the attribute.
@return {String} The attribute value.
Returns the value of an attribute from the element s underlying DOM node .