- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 13 Sep 2009 07:29:32 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv21251 Modified Files: Overview.html Log Message: required='' example (whatwg r3817) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2985 retrieving revision 1.2986 diff -u -d -r1.2985 -r1.2986 --- Overview.html 13 Sep 2009 07:06:57 -0000 1.2985 +++ Overview.html 13 Sep 2009 07:29:29 -0000 1.2986 @@ -30976,6 +30976,28 @@ string, then the element is <a href="#suffering-from-being-missing">suffering from being missing</a>.</p> + </div><div class="example"> + + <p>The following form has two required fields, one for an e-mail + address and one for a password. It also has a third field that is + only considerd valid if the user types the same password in the + password field and this third field.</p> + + <pre><h1>Create new account</h1> +<form action="/newaccount" method=post> + <p> + <label for="username">E-mail address:</label> + <input id="username" type=email required name=un> + <p> + <label for="password1">Password:</label> + <input id="password1" type=password required name=up> + <p> + <label for="password2">Confirm password:</label> + <input id="password2" type=password onforminput="setCustomValidity(value != password1.value ? 'Passwords do not match.' : '')"> + <p> + <input type=submit value="Create account"> +</form></pre> + </div><h6 id="the-multiple-attribute"><span class="secno">4.10.4.2.6 </span>The <code title="attr-input-multiple"><a href="#attr-input-multiple">multiple</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-input-multiple" title="attr-input-multiple"><code>multiple</code></dfn> attribute is a <a href="#boolean-attribute">boolean attribute</a> that indicates whether the user is to be allowed to specify more than one value.<h6 id="the-maxlength-attribute"><span class="secno">4.10.4.2.7 </span>The <code title="attr-input-maxlength"><a href="#attr-input-maxlength">maxlength</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-input-maxlength" title="attr-input-maxlength"><code>maxlength</code></dfn>
Received on Sunday, 13 September 2009 07:29:42 UTC