microformat-shiv.js
function( node ){
			var nodeStr = node.outerHTML,
				attrs = [];

			for (var i = 0; i < node.attributes.length; i++) {
				var attr = node.attributes[i];
					attr.indexNum = nodeStr.indexOf(attr.name);

				attrs.push( attr );
			}
			return attrs.sort( modules.utils.sortObjects( 'indexNum' ) );
		}
function( node ){
			var nodeStr = node.outerHTML,
				attrs = [];

			for (var i = 0; i < node.attributes.length; i++) {
				var attr = node.attributes[i];
					attr.indexNum = nodeStr.indexOf(attr.name);

				attrs.push( attr );
			}
			return attrs.sort( modules.utils.sortObjects( 'indexNum' ) );
		}
function ( node ) { var nodeStr = node . outerHTML , attrs = [ ] ; for ( var i = 0 ; i < node . attributes . length ; i ++ ) { var attr = node . attributes [ i ] ; attr . indexNum = nodeStr . indexOf ( attr . name ) ; attrs . push ( attr ) ; } return attrs . sort ( modules . utils . sortObjects ( 'indexNum' ) ) ; }
gets the attributes of a node - ordered by sequence in html

@param  {DOM Node} node
@return {Array}
gets the attributes of a node - ordered by sequence in html