<?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>28095</bug_id>
          
          <creation_ts>2015-02-24 20:34:37 +0000</creation_ts>
          <short_desc>Half the world uses commas instead of periods as decimal separators. How about requiring user-agents to handle both? Details on browser support here:</short_desc>
          <delta_ts>2015-08-28 16:02:01 +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>NEEDSINFO</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#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>annevk</cc>
    
    <cc>dnebdal</cc>
    
    <cc>ian</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118130</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-02-24 20:34:37 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/forms.html
Multipage: https://html.spec.whatwg.org/multipage/#number-state-(type=number)
Complete: https://html.spec.whatwg.org/#number-state-(type=number)
Referrer: https://t.co/FqfygG7rf8

Comment:
Half the world uses commas instead of periods as decimal separators. How about
requiring user-agents to handle both? Details on browser support here:
https://www.aeyoun.com/posts/html5-input-number-localization.html

Posted from: 84.208.125.29
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 AlexaToolbar/alxf-2.21</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118314</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-03-04 21:38:27 +0000</bug_when>
    <thetext>Why would we want to have two wire formats? I don&apos;t understand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118351</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-03-05 12:05:01 +0000</bug_when>
    <thetext>This seems like a bug on some browsers&apos; UI, not a bug with the wire format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118366</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Nebdal">dnebdal</who>
    <bug_when>2015-03-05 17:30:57 +0000</bug_when>
    <thetext>He never suggested changing the wire format, and I agree with the argument that it&apos;s a browser UI failure. Still, the current state of affairs makes using &quot;number&quot; for decimal input hard to recommend unless you know your users will always write decimals with a dot.

As for how this relates to the *spec* (as opposed to filing bugs with the browser vendors), there seems to be a few possible approaches:

A) Add some wording to strongly suggest that browser UIs should accept both comma and full stop as separators in typed-input contexts where they would accept either of them.
B) Add some canonical way to get hold of the raw text value of the field (where one exists), so this can be worked around in javascript.


Both are a bit clunky, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119089</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-03-30 22:26:01 +0000</bug_when>
    <thetext>The UI isn&apos;t specced at all, that&apos;s entirely a UA issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>