When this input is generated the type attribute is set to "submit" right away, then the value is set. This works in IE 10, and the button should say "Submit Generated Button", (its value attribute):
For this button the value is set before the type, and the result is a button with a default value, (Submit Query). The button should say "The second button":