[Webkit-unassigned] [Bug 62939] A comma is being inserted into the text of a "number" field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 21 00:58:23 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62939





--- Comment #1 from Kent Tamura <tkent at chromium.org>  2011-06-21 00:58:23 PST ---
The purpose of introducing LocalizedNumber was to support localized decimal separators.  Supporting group separators in parsing is also helpful for users, and it is harmless. Supporting group separators in formatting and auto-reformatting are harmfull in some cases.

So, a short term solution woud be:
 * Don't reformat the user-input value if it is a valid number, and
 * Don't use group separators in formatting in order to avoid formatting of the initial value.

I think a long term solution would be:
   Introducing a CSS property to control number formatting.
  e.g.  -webkit-number-format: [ "none" | "auto" | format-string]
    "none" accepts only HTML5 format.
     "auto" is the current locale-dependent behavior.
     format-string is like "#,##0.###"

Comments?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list