WHATWG calls for 'Last' Comments on Web Forms
hixie writes " The W3C recently acknowledged
a version of the Web Forms 2.0 draft submitted to the W3C by Mozilla
and Opera. Meanwhile the WHATWG has updated the Web Forms draft and
released a new
call for comments. Send them in!"
It's a little faster for the user (instant feedback on any mistakes), and it saves a tiny bit of server resources. And it should replace all the JavaScript hacks with one standard interface.
...
What's to stop server side code from parsing the XForms (or Web Forms or whatever your choice of poison is) to extract validation information, and then do the _exact_ same checks on the server side? Why, it even makes your code more easily maintainable.
I do something similar to this with my PHP framework using XML documents (for those wondering about the efficiency: so far it's been good enough for me, but with my framework there's nothing stopping one from cacheing the generated code as PHP, changing a line in a config file and continuing on without any interface changes), though I've not yet chosen my poison in terms of a standardized format: I'd like to just go with XForms, but who knows what bastardized format we'll be using in a few years time