<br><br><div class="gmail_quote">On Sat, Apr 3, 2010 at 06:37, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Sat, 3 Apr 2010, TAMURA, Kent wrote:<br>
><br>
> I found type=number also had no typeMismatch. If a user wants to type a<br>
> negative value, he types '-' first.  This state should make typeMismatch<br>
> true because '-' is not a valid floating point number.<br>
<br>
</div>The user agent shouldn't update the value until the input is a valid<br>
number. ("User agents must not allow the user to set the value to a string<br>
that is not a valid floating point number.")</blockquote><div><br></div><div>I don't accept this behavior.  Suppose that a user type "-" to an empty <input type=number>, then press ENTER to submit the form. As per the current specification, UA should send an empty value for the number control even though the number control has a visible string.  The user doesn't expect a value different from the visible value is sent.  This is very confusing.</div>

<div><br></div><div>In such case, UA should prevent the form submission and show a validation message for typeCheck.</div></div><div><br></div><br>-- <br>TAMURA Kent <br>Software Engineer, Google <br><br><br><br>