index.js
function createProperty(attr) {
	var name, value, isAttr;

	// using a map to find the correct case of property name
	if (propertyMap[attr.name]) {
		name = propertyMap[attr.name];
	} else {
		name = attr.name;
	}
	// special cases for data attribute, we default to properties.attributes.data
	if (name.indexOf('data-') === 0 || name.indexOf('aria-') === 0) {
		value = attr.value;
		isAttr = true;
	} else {
		value = attr.value;
	}

	return {
		name: name
		, value: value
		, isAttr: isAttr || false
	};
}
function createProperty(attr) {
	var name, value, isAttr;

	// using a map to find the correct case of property name
	if (propertyMap[attr.name]) {
		name = propertyMap[attr.name];
	} else {
		name = attr.name;
	}
	// special cases for data attribute, we default to properties.attributes.data
	if (name.indexOf('data-') === 0 || name.indexOf('aria-') === 0) {
		value = attr.value;
		isAttr = true;
	} else {
		value = attr.value;
	}

	return {
		name: name
		, value: value
		, isAttr: isAttr || false
	};
}
function createProperty ( attr ) { var name , value , isAttr ; // using a map to find the correct case of property name if ( propertyMap [ attr . name ] ) { name = propertyMap [ attr . name ] ; } else { name = attr . name ; } // special cases for data attribute, we default to properties.attributes.data if ( name . indexOf ( 'data-' ) === 0 || name . indexOf ( 'aria-' ) === 0 ) { value = attr . value ; isAttr = true ; } else { value = attr . value ; } return { name : name , value : value , isAttr : isAttr || false } ; }
Create property from dom attribute

@param   Object  attr  DOM attribute
@return  Object        Normalized attribute
Create property from dom attribute