microformat-shiv.js
function(rootNode, name, value) {
			var arr = [],
				x = 0,
				i,
				out = [];

			arr = this.getNodesByAttribute(rootNode, name);
			if(arr) {
				i = arr.length;
				while(x < i) {
					if(this.hasAttributeValue(arr[x], name, value)) {
						out.push(arr[x]);
					}
					x++;
				}
			}
			return out;
		}
function(rootNode, name, value) {
			var arr = [],
				x = 0,
				i,
				out = [];

			arr = this.getNodesByAttribute(rootNode, name);
			if(arr) {
				i = arr.length;
				while(x < i) {
					if(this.hasAttributeValue(arr[x], name, value)) {
						out.push(arr[x]);
					}
					x++;
				}
			}
			return out;
		}
function ( rootNode , name , value ) { var arr = [ ] , x = 0 , i , out = [ ] ; arr = this . getNodesByAttribute ( rootNode , name ) ; if ( arr ) { i = arr . length ; while ( x < i ) { if ( this . hasAttributeValue ( arr [ x ] , name , value ) ) { out . push ( arr [ x ] ) ; } x ++ ; } } return out ; }
gets all child nodes with a given attribute containing a given value

@param  {DOM Node} node
@param  {String} attributeName
@return {DOM NodeList}
gets all child nodes with a given attribute containing a given value