Exclude custom_element and custom_value from the list of options whch should not be set as attributes