In this answer, I took over some of the OP's code.
I did not solve the typo (Sumbit instead of Submit) on purpose, for my fix was not about his spelling but about his code. An hour later though, someone edited my answer to solve just that particular typo.
A few things should be considered:
- Did the OP perhaps write it wrong intentionally?
- Does fixing a typo contribute to the quality of the answer?
- Would fixing a typo change the general behaviour of the original code? (eg. function names)
In this particular case the answer to these questions would probably be no.
Hence my question; what is the general behaviour on dealing with typo's in code you take over from the OP? Was the edit on my answer justified or unnecessary? Should I fix typo's in the OP's code in the future?