[html5] help with form validation issue please?

Brett Ryan brett.ryan at gmail.com
Sun Aug 18 22:05:46 PDT 2013


Boolean attributes are supplied by either the presence of the attribute with no value (i.e. 'required') or by specifying the value as the name of the attribute.

So you must specify one of the following:

<input type="text" required/>

or

<input type="text" required="required"/>


On 19/08/2013, at 2:51 PM, cat <catsoul at thinkplan.org> wrote:

> Here's my form code, and under it the warning throw out by the validator..I don't get why the one that validates DOES validate…any clues? thank you!
> 
> 
> 	Name:<br /><input type="text" name="Name" required="true" title="Your name is required" placeholder="Please type your full name" /><br />
> 
> Validator Error:
>  Line 41, Column 132: Bad value true for attribute required on element input.
> …title="Your name is required" placeholder="Please type your full name" /><br />
> 
> ==========================
> 
> 
> Here's the one that DOES validate:
> 
> 	Name:<br /><input type=text required name=up title="Your name is required" placeholder="Please type your full name" /><br />
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20130819/87af9848/attachment-0003.htm>


More information about the Help mailing list