JSFiddle - React, Tailwind, and code Playground
CSS
button {
color: red;
}
button[type='button'] {
color: green;
}
JavaScript
/*
in iE8+iE7 compatibility mode, jQuery 1.5+ seems to not add the type="button" attribute to the button element when inserted via jQuery. Earlier versions do correctly set this.
oad this in iE8+iE7 compatibility mode and try it with different jQuery versions to see the effect.
0-1.4.4 - green button
1.5+ - red button
*/
$('<button type="button">button</button>').appendTo("div");