Allow type attribute to fix checkboxes and other elements