document.createElement("button").type
document.createElement("button").getAttribute("type")
document.createElement("input").type
document.createElement("input").getAttribute("type")
Browser | button.type | button.getAttribute("type") | input.type | input.getAttribute("type") |
---|---|---|---|---|
Chrome | submit | null | text | null |
Firefox | submit | null | text | null |
ie11 | submit | null | text | null |
ie10 | submit | null | text | null |
ie9 | submit | null | text | null |
ie8 | submit | submit | text | text |
ie7 | button | button | text | text |
ie6 | button | button | text | text |
phantom | submit | null | text | null |
safari | submit | null | text | null |