microformat-shiv.js
function(node, attrName, baseUrl){
			var i,
				nodes,
				attr;

			nodes = modules.domUtils.getNodesByAttribute(node, attrName);
			i = nodes.length;
			while (i--) {
				try{
					// the url parser can blow up if the format is not right
					attr = modules.domUtils.getAttribute(nodes[i], attrName);
					if(attr && attr !== '' && baseUrl !== '' && attr.indexOf('://') === -1) {
						//attr = urlParser.resolve(baseUrl, attr);
						attr = modules.url.resolve(attr, baseUrl);
						modules.domUtils.setAttribute(nodes[i], attrName, attr);
					}
				}catch(err){
					// do nothing - convert only the urls we can, leave the rest as they are
				}
			}
		}
function(node, attrName, baseUrl){
			var i,
				nodes,
				attr;

			nodes = modules.domUtils.getNodesByAttribute(node, attrName);
			i = nodes.length;
			while (i--) {
				try{
					// the url parser can blow up if the format is not right
					attr = modules.domUtils.getAttribute(nodes[i], attrName);
					if(attr && attr !== '' && baseUrl !== '' && attr.indexOf('://') === -1) {
						//attr = urlParser.resolve(baseUrl, attr);
						attr = modules.url.resolve(attr, baseUrl);
						modules.domUtils.setAttribute(nodes[i], attrName, attr);
					}
				}catch(err){
					// do nothing - convert only the urls we can, leave the rest as they are
				}
			}
		}
function ( node , attrName , baseUrl ) { var i , nodes , attr ; nodes = modules . domUtils . getNodesByAttribute ( node , attrName ) ; i = nodes . length ; while ( i -- ) { try { // the url parser can blow up if the format is not right attr = modules . domUtils . getAttribute ( nodes [ i ] , attrName ) ; if ( attr && attr !== '' && baseUrl !== '' && attr . indexOf ( '://' ) === - 1 ) { //attr = urlParser.resolve(baseUrl, attr); attr = modules . url . resolve ( attr , baseUrl ) ; modules . domUtils . setAttribute ( nodes [ i ] , attrName , attr ) ; } } catch ( err ) { // do nothing - convert only the urls we can, leave the rest as they are } } }
expands all relative URLs to absolute ones where it can

@param  {DOM Node} node
@param  {String} attrName
@param  {String} baseUrl
expands all relative URLs to absolute ones where it can