reCaptcha preventing Input type number from respecting max attribute?
<p>I have a form created with html5 that uses reCaptcha validation before allowing a submit.</p>

<p>The form has number type inputs that use the max and min attributes.</p>

<p>The attributes work in preventing the user from scrolling past the max or min values when using the arrows. If the users types the value in the form field any value can be entered. So far this is behaving as expected.
However, if the user enters a value greater than the max attribute value, validates the reCaptcha and then presses submit, the expected error pop-up does not appear, the form is submitted as is and it throws a 500 server-error (because the app does not expect the value submitted to it).</p>

<p>When the page was initially created and tested without the reCaptcha the input forms worked as expected.</p>

<p>This was tested on: Opera 38.0 on a window7 box and Firefox 47.0 on ubuntu 14.04.</p>

<p>Have I made an implementation error?</p>

<p>Here is my captcha validation:</p>

<pre><code>&lt;script&gt;
    function get_action(form) {
      var response = grecaptcha.getResponse();
      var isCaptchaValidated = false;
      if (response.length == 0) {
        isCaptchaValidated = false;
        alert('Please verify that your are human');
      }
      else {
        isCaptchaValidated = true;
      }

      if (isCaptchaValidated === true){
        document.getElementById("form").submit()
      }
    } 
&lt;/script&gt;
</code></pre>

<p>What can be done to resolve this?</p>