Attach extra dom attributes to form inputs without JS?

Is it possible to define DOM attributes to attach to desk form elements without resorting to JS hooks? I would like to include some basic client-side validation (ex. max-length on text inputs, force letter case, etc) on some inputs.

Add those to Frappe Core (and send a pull request) - that is the best way to keep your changes maintainable.