Support for formaction attribute for input of type submit

I'm sorry, the patch is just a quick hack that solves my problem. But perhaps it could be reworked to fit the current logic and pulled in.
The formaction attribute: http://www.w3schools.com/tags/att_input_formaction.asp