<?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>12262</bug_id>
          
          <creation_ts>2011-03-08 00:11:03 +0000</creation_ts>
          <short_desc>select(), selectionStart, selectionEnd and setSelectionRange() should apply to &lt;input type=&apos;email&apos;&gt;</short_desc>
          <delta_ts>2012-10-16 17:27:31 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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="Edward O&apos;Connor">eoconnor</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>eoconnor</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>shadow2531</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>46481</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-03-08 00:11:03 +0000</bug_when>
    <thetext>I don&apos;t understand why these IDL attributes and methods do not apply to &lt;input type=&apos;email&apos;&gt;. Maybe when writing the specs the expected widget wasn&apos;t a text field but it seems that it is for all current implementations. Maybe those IDL attributes and methods should apply to &lt;input type=&apos;email&apos;&gt; and should be removed only if the widget happen to not be a text field?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46482</commentid>
    <comment_count>1</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-03-08 00:12:52 +0000</bug_when>
    <thetext>My last sentence might not be clear. I meant that we might make those IDL attributes and methods not applying to &lt;input type=&apos;email&apos;&gt; if implementations move from a text field to something more complex where text selection has no meaning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46489</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-03-08 00:42:21 +0000</bug_when>
    <thetext>I assume the theory was maybe it would be tied into the user&apos;s address book (e.g., on a smartphone).  But even if it is, how is this different from autocomplete on a plain text field?  Selection still makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46898</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-03-22 00:50:57 +0000</bug_when>
    <thetext>What happens if the displayed value doesn&apos;t match the value in .value?

For example we&apos;ve discussed adding a &quot;, &quot; to the end of the displayed value as to make it easier to add additional email addresses, however since this would result in an invalid address it wouldn&apos;t show up in .value or the submitted string.

Also, we might get fancy enough that we display the name along with the email address if the browser gets access to an address book. In that case the name would be displayed but not show up in .value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47055</commentid>
    <comment_count>4</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2011-03-30 16:13:45 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; What happens if the displayed value doesn&apos;t match the value in .value?
&gt; 
&gt; For example we&apos;ve discussed adding a &quot;, &quot; to the end of the displayed value as
&gt; to make it easier to add additional email addresses, however since this would
&gt; result in an invalid address it wouldn&apos;t show up in .value or the submitted
&gt; string.
&gt; 
&gt; Also, we might get fancy enough that we display the name along with the email
&gt; address if the browser gets access to an address book. In that case the name
&gt; would be displayed but not show up in .value.

Good point.

Then I don&apos;t know what we should do. I see a few possibilities:
- Allow selection methods and attributes and expect implementations to be clever we .value isn&apos;t the shown value ;
- Allow selection methods and attributes but also allow doing nothing if the widget is more complex than a simple text field ;
- Not allowing selection methods and attributes because some implementation might be more complex than a simple text field (this is not the case currently AFAIK).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49548</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-14 01:15:23 +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: The type=email case isn&apos;t supposed to show a simple text edit box, especially when multiple=&quot;&quot; is applied. Browsers might do it now, but I expect this will change in due course, as they one-up each other on the UI experience here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54094</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:35:59 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69767</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-07-10 08:24:09 +0000</bug_when>
    <thetext>From Daniel Bratell: 

I&apos;m really not satisified with that interpretation because the arguments against selections on type=email (&quot;we might to want to have a fancy UI that doesn&apos;t match a text string&quot;) apply to type=uri, type=tel and even type=password as well.

So I say that if someone wants to have a fancy UI they will have to deal with how to map selections between the string and the UI, or at least, type=email and type=url and type=tel should be treated identical in this respect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70434</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:29:16 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17986 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76411</commentid>
    <comment_count>9</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-10-16 17:27:31 +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: See comment 5.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>