html5 client-side form validation and language
Opera already supports several HTML5 form validation attributes such as required, pattern, etc... So when I leave a required field empty and submit it an error message appears next to the field. This is great but I didn't find any way to change the default message, also to change the language of the error message (I tried the lang attribute).
how should this work? (I didn't find anything about it in th开发者_高级运维e specification)
thx, Viktor
There isn't any way to change it, or even style it, at present. The idea is that the user gets a more consistent interface (across all websites) and things which developers often don't think about, such as accessibility and internationalization, are taken care of by the browser. However, the ability to customize has been the subject of some debate.
You might be able to implement your own handler, have a look at what this guy's done to replace the standard messages.
精彩评论