[html5] r3509 - [e] (0) Mention explicitly that type=tel isn't format-checked.

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 30 18:28:43 PDT 2009


Author: ianh
Date: 2009-07-30 18:28:42 -0700 (Thu, 30 Jul 2009)
New Revision: 3509

Modified:
   index
   source
Log:
[e] (0) Mention explicitly that type=tel isn't format-checked.

Modified: index
===================================================================
--- index	2009-07-31 01:23:51 UTC (rev 3508)
+++ index	2009-07-31 01:28:42 UTC (rev 3509)
@@ -30653,6 +30653,14 @@
 
   </div>
 
+  <p class=note>Unlike the <a href=#url-state title=attr-input-type-url>URL</a> and <a href=#e-mail-state title=attr-input-type-email>E-mail</a> types, the <a href=#telephone-state title=attr-input-type-tel>Telephone</a> type does not enforce a
+  particular syntax. This is intentional; in practice, telephone
+  number fields tend to be free-form fields, because there are a wide
+  variety of valid phone numbers. Systems that need to enforce a
+  particular format are encouraged to use the <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code> method
+  to hook into the client-side validation mechanism.</p>
+
+
   <div class="bookkeeping impl">
 
    <p>The following common <code><a href=#the-input-element>input</a></code> element content

Modified: source
===================================================================
--- source	2009-07-31 01:23:51 UTC (rev 3508)
+++ source	2009-07-31 01:28:42 UTC (rev 3509)
@@ -34034,6 +34034,18 @@
 
   </div>
 
+  <p class="note">Unlike the <span
+  title="attr-input-type-url">URL</span> and <span
+  title="attr-input-type-email">E-mail</span> types, the <span
+  title="attr-input-type-tel">Telephone</span> type does not enforce a
+  particular syntax. This is intentional; in practice, telephone
+  number fields tend to be free-form fields, because there are a wide
+  variety of valid phone numbers. Systems that need to enforce a
+  particular format are encouraged to use the <code
+  title="dom-cva-setCustomValidity">setCustomValidity()</code> method
+  to hook into the client-side validation mechanism.</p>
+
+
   <div class="bookkeeping impl">
 
    <p>The following common <code>input</code> element content




More information about the Commit-Watchers mailing list