allow a null data-model attribute if the name attribute is set