microformat-shiv.js
function(node, id, propertyName) {
			if(this.hasRootID(node, id, propertyName) === false){
				var rootids = [];
				if(modules.domUtils.hasAttribute(node,'rootids')){
					rootids = modules.domUtils.getAttributeList(node,'rootids');
				}
				rootids.push('id' + id + '-' + propertyName);
				modules.domUtils.setAttribute(node, 'rootids', rootids.join(' '));
			}
		}
function(node, id, propertyName) {
			if(this.hasRootID(node, id, propertyName) === false){
				var rootids = [];
				if(modules.domUtils.hasAttribute(node,'rootids')){
					rootids = modules.domUtils.getAttributeList(node,'rootids');
				}
				rootids.push('id' + id + '-' + propertyName);
				modules.domUtils.setAttribute(node, 'rootids', rootids.join(' '));
			}
		}
function ( node , id , propertyName ) { if ( this . hasRootID ( node , id , propertyName ) === false ) { var rootids = [ ] ; if ( modules . domUtils . hasAttribute ( node , 'rootids' ) ) { rootids = modules . domUtils . getAttributeList ( node , 'rootids' ) ; } rootids . push ( 'id' + id + '-' + propertyName ) ; modules . domUtils . setAttribute ( node , 'rootids' , rootids . join ( ' ' ) ) ; } }
appends a new rootid to a given node

@param  {DOM Node} node
@param  {String} id
@param  {String} propertyName
appends a new rootid to a given node