Skip to content

Instantly share code, notes, and snippets.

@hotoo
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotoo/9c19bf730dc04e5ad910 to your computer and use it in GitHub Desktop.
Save hotoo/9c19bf730dc04e5ad910 to your computer and use it in GitHub Desktop.
button.type
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment