1 August 2011 at 6:54pm
The space is added in case there are already classes defined, have you tried calling extraClass(), according to the API (http://api.silverstripe.org/2.4/forms/core/Form.html#methodextraClass) it compiles all css classes, although I'm not 100% sure it means it will get rid of the leading space.
3 August 2011 at 7:26pm
I guess it may always put a ' ' before everything just to be safe. It shouldn't cause any issues as [space] won't be a valid classname. If you want to dig in and get it resolved have a look around where it prints the select tag, you probably need to use trim() around value put into the class attribute.