microformat-shiv.js
function(node, propertyType) {
			var context = this,
				children = [],
				out = [],
				child,
				x,
				i;

			children = modules.domUtils.getChildren( node );

			x = 0;
			i = children.length;
			while(x < i) {
				child = children[x];
				var value = null;
				if(modules.domUtils.hasAttributeValue(child, 'class', 'value')) {
					switch(propertyType) {
					case 'p':
						value = context.getPValue(child, false);
						break;
					case 'u':
						value = context.getUValue(child, false);
						break;
					case 'dt':
						value = context.getDTValue(child, '', null, false);
						break;
					}
					if(value) {
						out.push(modules.utils.trim(value));
					}
				}
				x++;
			}
			if(out.length > 0) {
				if(propertyType === 'p') {
					return modules.text.parseText( this.document, out.join(''), this.options.textFormat);
				}
				if(propertyType === 'u') {
					return out.join('');
				}
				if(propertyType === 'dt') {
					var format = 'microformat2';
					return modules.dates.concatFragments(out,format).toString(format);
				}
			} else {
				return null;
			}
		}
function(node, propertyType) {
			var context = this,
				children = [],
				out = [],
				child,
				x,
				i;

			children = modules.domUtils.getChildren( node );

			x = 0;
			i = children.length;
			while(x < i) {
				child = children[x];
				var value = null;
				if(modules.domUtils.hasAttributeValue(child, 'class', 'value')) {
					switch(propertyType) {
					case 'p':
						value = context.getPValue(child, false);
						break;
					case 'u':
						value = context.getUValue(child, false);
						break;
					case 'dt':
						value = context.getDTValue(child, '', null, false);
						break;
					}
					if(value) {
						out.push(modules.utils.trim(value));
					}
				}
				x++;
			}
			if(out.length > 0) {
				if(propertyType === 'p') {
					return modules.text.parseText( this.document, out.join(''), this.options.textFormat);
				}
				if(propertyType === 'u') {
					return out.join('');
				}
				if(propertyType === 'dt') {
					var format = 'microformat2';
					return modules.dates.concatFragments(out,format).toString(format);
				}
			} else {
				return null;
			}
		}
function ( node , propertyType ) { var context = this , children = [ ] , out = [ ] , child , x , i ; children = modules . domUtils . getChildren ( node ) ; x = 0 ; i = children . length ; while ( x < i ) { child = children [ x ] ; var value = null ; if ( modules . domUtils . hasAttributeValue ( child , 'class' , 'value' ) ) { switch ( propertyType ) { case 'p' : value = context . getPValue ( child , false ) ; break ; case 'u' : value = context . getUValue ( child , false ) ; break ; case 'dt' : value = context . getDTValue ( child , '' , null , false ) ; break ; } if ( value ) { out . push ( modules . utils . trim ( value ) ) ; } } x ++ ; } if ( out . length > 0 ) { if ( propertyType === 'p' ) { return modules . text . parseText ( this . document , out . join ( '' ) , this . options . textFormat ) ; } if ( propertyType === 'u' ) { return out . join ( '' ) ; } if ( propertyType === 'dt' ) { var format = 'microformat2' ; return modules . dates . concatFragments ( out , format ) . toString ( format ) ; } } else { return null ; } }
gets the text of any child nodes with a class value

@param  {DOM Node} node
@param  {String} propertyName
@return {String || null}
gets the text of any child nodes with a class value