This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9436 - Telephone state note should mention pattern attribute
Summary: Telephone state note should mention pattern attribute
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/forms.ht...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 21:32 UTC by Mounir Lamouri
Modified: 2010-10-04 13:54 UTC (History)
4 users (show)

See Also:


Attachments

Description Mounir Lamouri 2010-04-06 21:32:24 UTC
There is a note in the input element telephone state mentioning setCustomValidity() method to manage telephone state validation mechanism. The pattern attribute may be very helpful for that, even more. Probably it should be mentioned ?

This sentence:
"Systems that need to enforce a particular format are encouraged to use the setCustomValidity() method to hook into the client-side validation mechanism."

Could be changed to:
"Systems that need to enforce a particular format are encouraged to use the pattern attribute or the setCustomValidity() method to hook into the client-side validation mechanism."
Comment 1 Ian 'Hixie' Hickson 2010-04-13 01:32:33 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 2 contributor 2010-04-13 01:34:30 UTC
Checked in as WHATWG revision r5012.
Check-in comment: Suggest using pattern='' with type=tel
http://html5.org/tools/web-apps-tracker?from=5011&to=5012