Wouldn't the UA be written for a specific language that would be independent of the language the page's content is written in? For example, a user in Spain would be using a UA with a Spanish locale (the UA's menus, dialogs, button labels, etc. would all be in Spanish). If that user were to visit a page written in French wouldn't the content generated by the UA still be in Spanish? So an alert would contain a message in French, but a button in Spanish. I would expect the same thing to happen with validation messages.<br>
<br>As for the suggestion of the validation message just being a constant, you can just check the validity state if you want to provide custom messages.<br><br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 4:23 PM, Michelangelo De Simone <span dir="ltr"><<a href="mailto:micdesim@gmail.com">micdesim@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I've been dealing with the validationMessage implementation in WebKit. As some of WebKit member pointed out it's quite unusual for an attribute to "return a suitably *localized message* that the user agent would show the user".<br>
<br>
Couldn't such behavior be potentially heterogeneous among UAs and localizations?<br>
<br>
What is the rationale about this choice? A simpler behavior with a predetermined list of return values (eg: i.validationMessage == VALUEMISSING) could be much more efficient for authors and implementors to deal with, IMHO.<br>
<br>
Thank you for your feedbacks.<br>
<font color="#888888">--<br>
Bye, Michelangelo<br>
<br>
<br>
<br>
</font></blockquote></div><br>