<div class="gmail_quote">On Tue, Aug 25, 2009 at 12:50 AM, Alex Vincent <span dir="ltr"><<a href="mailto:ajvincent@gmail.com">ajvincent@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
"The validationMessage attribute must return the empty string if the<br>
element is not a candidate for constraint validation or if it is one<br>
but it satisfies its constraints; otherwise, it must return a suitably<br>
localized message that the user agent would show the user if this were<br>
the only form with a validity constraint problem. If the element is<br>
suffering from a custom error, then the custom validity error message<br>
should be present in the return value."<br>
<br>
Specifically, the last sentence contradicts the rest of the paragraph.<br>
If there is a custom error, but the element is not a candidate for<br>
constraint validation, should the validationMessage attribute be<br>
empty, or should the custom validity error message be present in the<br>
return value? You can't have both.</blockquote><div><br></div><div>I believe the intent is that an element which is not a candidate for constraint validation cannot be suffering from a custom error (just as it cannot be suffering from any other validation error). However, I'm not sure why elements which are barred from constraint validation (fieldset, output) have a setCustomValidity() method; perhaps so that authors could blindly iterate over all form-associated elements and call this method?</div>
<div><br></div><div>PK</div></div>