lib/filter/html.js
function makeAttributesString(node, profile) {
		var attrQuote = profile.attributeQuote();
		var cursor = profile.cursor();
		
		return node.attributeList().map(function(a) {
			var isBoolean = profile.isBoolean(a.name, a.value);
			var attrName = profile.attributeName(a.name);
			var attrValue = isBoolean ? attrName : a.value;
			if (isBoolean && profile.allowCompactBoolean()) {
				return ' ' + attrName;
			}
			return ' ' + attrName + '=' + attrQuote + (attrValue || cursor) + attrQuote;
		}).join('');
	}
function makeAttributesString(node, profile) {
		var attrQuote = profile.attributeQuote();
		var cursor = profile.cursor();
		
		return node.attributeList().map(function(a) {
			var isBoolean = profile.isBoolean(a.name, a.value);
			var attrName = profile.attributeName(a.name);
			var attrValue = isBoolean ? attrName : a.value;
			if (isBoolean && profile.allowCompactBoolean()) {
				return ' ' + attrName;
			}
			return ' ' + attrName + '=' + attrQuote + (attrValue || cursor) + attrQuote;
		}).join('');
	}
function makeAttributesString ( node , profile ) { var attrQuote = profile . attributeQuote ( ) ; var cursor = profile . cursor ( ) ; return node . attributeList ( ) . map ( function ( a ) { var isBoolean = profile . isBoolean ( a . name , a . value ) ; var attrName = profile . attributeName ( a . name ) ; var attrValue = isBoolean ? attrName : a . value ; if ( isBoolean && profile . allowCompactBoolean ( ) ) { return ' ' + attrName ; } return ' ' + attrName + '=' + attrQuote + ( attrValue || cursor ) + attrQuote ; } ) . join ( '' ) ; }
Creates HTML attributes string from tag according to profile settings
@param {AbbreviationNode} node
@param {OutputProfile} profile
Creates HTML attributes string from tag according to profile settings