I'm trying to figure out if it's worth specifying type="submit"
for a button inside a form if I'm supporting more recent IE versions; as MDN states, type="submit" is the default if the attribute is not specified for buttons associated with a <form>
, or if the attribute is an empty or invalid value." However, W3Schools states, "Always specify the type attribute for the button. The default type for Internet Explorer is "button", while in other browsers (and in the W3C specification) it is "submit"."
Based on what I've been able to find so far, it sounds it's only IE7 and below that have button
as the default value for the type
attribute; is that so?