ISSUE-136: Recognition of number formats in Number state

Recognition of number formats in Number state

State:
CLOSED
Product:
html
Raised by:
Richard Ishida
Opened on:
2011-07-27
Description:
Follow in bugzilla: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16165

4.10.7.1.13 Number state
http://www.w3.org/TR/html5/number-state.html#number-state

"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."

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'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's input itself).
Related Actions Items:
No related actions
Related emails:
  1. Review of tracker issues for best practices (Part IV) (from addison@lab126.com on 2015-03-31)
  2. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2014-03-06)
  3. Re: [I18N-ACTION-150] Review of HTML open issues (from ishida@w3.org on 2014-02-21)
  4. [I18N-ACTION-150] Review of HTML open issues (from addison@lab126.com on 2014-02-18)
  5. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2013-02-15)
  6. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2013-02-01)
  7. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2013-02-01)
  8. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-21)
  9. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  10. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  11. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  12. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  13. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  14. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  15. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  16. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-11-20)
  17. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-09-28)
  18. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-09-18)
  19. [Bug 17918] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-07-18)
  20. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-07-18)
  21. [Bug 17918] New: i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-07-18)
  22. [Bug 16165] i18n-ISSUE-136: Recognition of number formats in Number state (from bugzilla@jessica.w3.org on 2012-02-29)
  23. [minutes] i18n telecon, 2012-02-29 (from ishida@w3.org on 2012-02-29)
  24. I18N-ISSUE-136: Recognition of number formats in Number state [HTML5-prep] (from sysbot+tracker@w3.org on 2011-07-27)

Related notes:

Note that the current link is:

http://www.w3.org/html/wg/drafts/html/master/single-page.html#number-state-%28type=number%29

Addison Phillips, 6 Mar 2014, 23:27:28

Display change log ATOM feed


Addison Phillips <addison@amazon.com>, Chair, Richard Ishida <ishida@w3.org>, Fuqiao Xue <xfq@w3.org>, Atsushi Shimono <atsushi@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.326 2018/10/13 17:29:51 vivien Exp $