lib/packages/core-classes.js
function(name, value) {

		var result = '';

		if (value === true) {

			result = ' ' + name + '="' + name + '"';

		} else if (value != null && value !== false) {

			result = ' ' + name + '="' + this.escapeAttributeValue(value + '') + '"';

		}

		return result;

	}
function(name, value) {

		var result = '';

		if (value === true) {

			result = ' ' + name + '="' + name + '"';

		} else if (value != null && value !== false) {

			result = ' ' + name + '="' + this.escapeAttributeValue(value + '') + '"';

		}

		return result;

	}
function ( name , value ) { var result = '' ; if ( value === true ) { result = ' ' + name + '="' + name + '"' ; } else if ( value != null && value !== false ) { result = ' ' + name + '="' + this . escapeAttributeValue ( value + '' ) + '"' ; } return result ; }
Render one attribute
@param {string} name
@param {boolean|null|string} value
@returns {string}
Render one attribute