:html_attrs not working for type: :date - addresses issue #293

This addresses issue #293

There is no element type called "date" for the date datatype so setHtmlAttributes is not

setting the attributes on the correct element.  Added this.element_type to store an
element_type per datatype