required attribute missing by the INPUT tag, INPUT is not paired!
-
There should definitelly be the required attribute present by the INPUT field, because it IS required.
This way HTML5 compliant browsers would not let the user incorrectly submit the form without filled-in value in the CAPTCHA input field.
Currently, there is this code:
<input id="cptch_input" type="text" style="width:20px;margin-bottom:0;display:inline;font-size: 12px;width: 30px;" aria-required="true" size="2" maxlength="2" value="" name="cptch_number" autocomplete="off"> </input>Also, INPUT tag is NOT a pair tag! – see the fix below:
The FIX:
<input id="cptch_input" type="text" style="width:20px;margin-bottom:0;display:inline;font-size: 12px;width: 30px;" size="2" maxlength="2" value="" name="cptch_number" autocomplete="off" aria-required="true" required="required" />some additional info see here (if you like):
1) INPUT tag is not a paired tag:
http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4
2) the required attribute:
http://diveintohtml5.info/examples/input-required.html
3) what is the “aria-required” attribute?
http://developer.yahoo.com/blogs/ydn/define-required-inputs-aria-html5-53573.html
The topic ‘required attribute missing by the INPUT tag, INPUT is not paired!’ is closed to new replies.