code: function( elem, name, isXML ) {
  			var ret;
  			return isXML ?
  				undefined :
  				(ret = elem.getAttributeNode( name )) && ret.value !== "" ?
  					ret.value :
  					null;
  		}
docs: Some attributes are constructed with empty-string values when not defined