[Webkit-unassigned] [Bug 18994] LANG/LC_ALL influences the result of element.style.opacity

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 11 08:25:14 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18994


digulla at hepe.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Fading in WebKit            |LANG/LC_ALL influences the
                   |editingToolbar demo is      |result of
                   |broken                      |element.style.opacity




------- Comment #4 from digulla at hepe.com  2008-05-11 08:25 PDT -------
Okay, I found it. On my system, LANG is "de_DE.UTF-8". So I see this in the
console:

this.toolbarElement.style.opacity=0,1

parseFloat("0,1") returns 0 (it expects "0.1"), so the value stays at "0.1"
plus I get a nice busy loop. When I set LANG=C, the example works as expected.

So the problem is that float values returned by querying properties are
formatted according to the locale. I don't think that this is a good idea.


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



More information about the webkit-unassigned mailing list