The willValidate attribute applies to all form controls and gives the ability to check the target for its "validable" status.
This is part of Web Forms 2.0 standard implementation.
Created attachment 22375 [details]
Comment on attachment 22375 [details]
instead of checking for name().length() you can check !name().isEmpty()
otherwise, looks good.
Landed in r35381.