<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9439</bug_id>
          
          <creation_ts>2010-04-06 23:00:59 +0000</creation_ts>
          <short_desc>UA should not change values of input elements in telephone state</short_desc>
          <delta_ts>2010-10-04 13:57:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/forms.html#telephone-state</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>bugs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34623</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-04-06 23:00:59 +0000</bug_when>
    <thetext>According to the specifications &quot;User agents may change the punctuation of values that the user enters.&quot; and according to Ian, this means &quot;For example, if I enter &quot;1 650 253-0000&quot;, the user agent is allowed to change that to &quot;+1 (650) 253 0000&quot; or &quot;16502530000&quot; or &quot;+1 (650) 253-0000&quot;. This is because such reformatting is common practice in telephone number entry fields.&quot;.

In my opinion, this is the opposite from the note: &quot;Unlike the URL and E-mail types, the Telephone 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.&quot;

Changing the punctuation is part of enforcing a particular syntax.

In addition, it may make the check very hard. For example, I can check if a french phone number is valid by adding this in the pattern attribute: &quot;/^0\d{9}$/&quot;
If the UA is adding spaces, hyphens or anything else, it will break the check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34853</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-04-13 01:34:53 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: Rejected
Change Description: no spec change
Rationale: In practice, telephone number fields reformat the input — that&apos;s just how they work. We may have to change that if we find it really doesn&apos;t work well on the Web, but I think that it makes sense to start with what the existing practices are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35034</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2010-04-14 20:57:03 +0000</bug_when>
    <thetext>So the current wording allows browser to do whatever to the punctuation.
Scripts can&apos;t rely on what, nor can server side code.
So why to have such &quot;may change&quot; functionality?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35219</commentid>
    <comment_count>3</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2010-04-22 15:37:52 +0000</bug_when>
    <thetext>If the wording stays the same in the specification, could someone
at least give good reasoning for such &quot;may&quot;  feature, which lets
browser to do whatever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37581</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-17 19:06:18 +0000</bug_when>
    <thetext>Is the reasoning in comment 1 insufficient? I don&apos;t really understand what you&apos;re asking for.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>