<?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>16165</bug_id>
          
          <creation_ts>2012-02-29 19:51:05 +0000</creation_ts>
          <short_desc>i18n-ISSUE-136: Recognition of number formats in Number state</short_desc>
          <delta_ts>2014-03-06 23:30:44 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Ishida">ishida</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>addison</cc>
    
    <cc>cmhjones</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-i18n-core</cc>
    
    <cc>robin</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>w3-bugs</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>64754</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Ishida">ishida</who>
    <bug_when>2012-02-29 19:51:05 +0000</bug_when>
    <thetext>4.10.7.1.13 Number state
http://www.w3.org/TR/html5/number-state.html#number-state

&quot;The algorithm to convert a string to a number, given a string input, is as follows: If applying the rules for parsing floating point number values to input results in an error, then return an error; otherwise, return the resulting number.&quot;

Does this refer to conversion of the text the user inputs into the field, ie. if the user types in

12.345,67

will the rules for parsing floating point number values be applied to that to determine whether or not that is a valid number?

Or does this apply only to interpretation of the attribute value or the value passed to the value by the browser after interpretation of the user input? I assumed that this is the case, but it isn&apos;t clear.

I think a note would be useful, both here and for other states where formats vary around the world, to clarify this and btw to remind browser developers that the normal way of representing numbers differs around the world and they will should expect to have to convert the user input to the expected internal representation (but not change the user&apos;s input itself).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70299</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:17:02 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17918 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78498</commentid>
    <comment_count>2</comment_count>
    <who name="Norbert Lindenberg">w3-bugs</who>
    <bug_when>2012-11-20 01:12:52 +0000</bug_when>
    <thetext>New spec location:
http://dev.w3.org/html5/spec/single-page.html#number-state-%28type=number%29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78499</commentid>
    <comment_count>3</comment_count>
    <who name="Norbert Lindenberg">w3-bugs</who>
    <bug_when>2012-11-20 01:34:07 +0000</bug_when>
    <thetext>Discussed at the Internationalization WG meeting 2012-11-01: What&apos;s really causing the confusion is the phrase &quot;User agents must not allow the user to set the value...&quot;. 

If we understand the intent of the spec correctly, the user doesn&apos;t set the value at all; instead, the user types a string in a localized format, it gets interpreted and converted to a value, using algorithms that are not specified in HTML. The conversion algorithms discussed in the spec have nothing to do with user input; they handle text that&apos;s part of the HTML source or form submissions.

The phrase above contradicts this intent and should be fixed.

In addition, the note in the section uses a somewhat extreme example (Persian or Arabic numbers), so it&apos;s not obvious that more subtle differences also need to be handled, such as different decimal and grouping separators for German or for India.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83211</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-02-15 21:21:49 +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-v2.html

Status: Accepted

Change Description:
https://github.com/w3c/html/commit/3c757c6bddeffabe76bd3e35a2ee77030a49b47e

Rationale: Accepted WHATWG resolution</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102036</commentid>
    <comment_count>5</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2014-03-06 23:30:44 +0000</bug_when>
    <thetext>I18N is satisfied by these changes. Thank you.

I will note that there is still a &quot;feature gap&quot; in HTML. While the text goes to great lengths to allow user-agents to format input or localize the number input controls, there is still no mechanism to allow the document author to have any control over this format (so that it matches the language or format used in the page). 

This is actually addressed by bug #16965, so closing this issue as you have addressed our immediate comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>