[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 23:16:58 PDT 2011


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





--- Comment #3 from Eric Cain <arcain at unitedbinary.com>  2011-06-21 23:16:58 PST ---
I agree with the approach to mitigate the current formatting issue with a quick fix, and then come back with a more comprehensive, configurable solution.

I am creating a patch for part of the short-term solution: addressing the inclusion of grouping characters. I'll attach it here for review when I have finished.

(In reply to comment #1)
> 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