<?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>24588</bug_id>
          
          <creation_ts>2014-02-08 12:05:05 +0000</creation_ts>
          <short_desc>Why is selectionStart and selectionEnd not supported for input of type number? I see it as a hindrance to the flexibility of this type input. The spinner control is fine but why not let the user input [...]</short_desc>
          <delta_ts>2014-02-21 21:09:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#number-state-(type=number)</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100083</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-08 12:05:05 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html
Multipage: http://www.whatwg.org/C#number-state-(type=number)
Complete: http://www.whatwg.org/c#number-state-(type=number)
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html

Comment:
Why is selectionStart and selectionEnd not supported for input of type number?
I see it as a hindrance to the flexibility of this type input. The spinner
control is fine but why not let the user input the value they want themselves.
Selectionstart and end allows me to control the restricted digit depending on
the position.  Maxlength not being supported is also questionable. I would
think that developers would like to limit the number of digits in an input and
avoid having to use custom javascript.

Posted from: 72.14.228.1 by aaron.labiaga@gmail.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.70 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100209</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-10 21:17:13 +0000</bug_when>
    <thetext>There&apos;s no guarantee that type=number is a text field at all. It could be purely a spinner control, for example. So there might be nothing to select. Or it might have multiple text fields, for example one per digit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100211</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-10 21:17:52 +0000</bug_when>
    <thetext>*** Bug 24587 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>