I just noticed to my surprise that whitespace at the start or end of form parameters is not automatically removed in ASP.NET MVC 2 (browser: Firefox).
I always assumed this would be the case, simply because I could not see a scenario where I would NOT want trimming to happen by default.
This can be fixed very easily by implementing an appropriate ActionFilterAttribute , but I am still wondering why this is not the default.
So, is there any reason I should NOT auto-trim form parameters?
jQuery Invalid Argument 5899 in IE