<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>41541</bug_id>
          
          <creation_ts>2010-07-02 14:26:37 -0700</creation_ts>
          <short_desc>Dots are changed into commas in numbers when reading a css value from javascript</short_desc>
          <delta_ts>2010-07-02 20:20:49 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18994</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>dysinscr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>246085</commentid>
    <comment_count>0</comment_count>
    <who name="">dysinscr</who>
    <bug_when>2010-07-02 14:26:37 -0700</bug_when>
    <thetext>Hi,
I have discovered that WebKit is changing dots into comas in CSS numbers when reading them in Javascript.
For example, 17.5 becomes 17,5. This is correct although it can be a problem.

Let&apos;s try this :
 - Open your favorite WebKit based browser that supports the web inspector, like chromium or epiphany-webkit.
 - Load your favorite page, like about:blank.
 - Load the Web Inspector (Developer Tools in chromium) and go to the &quot;Console&quot; tab.

Run theses commands :
   d = document.createElement(&apos;div&apos;); // we create a new DIV element
   document.body.appendChild(d); // append it to body
   d.style.WebkitTransform = &apos;rotate(50deg)&apos;; // rotation.

/* Now, we are going to read this transformation value */
   document.defaultView.getComputedStyle(d,null).getPropertyValue(&apos;-webkit-transform&apos;);

=&gt; This give me &quot;matrix(0,642788, 0,766044, -0,766044, 0,642788, 0, 0)&quot;

I was first expecting &quot;rotate(50deg)&quot; (like Opera, which gives a rad value though) but matrix() is fine too (like Mozilla).

The problem is : I would prefer getting : &quot;matrix(0.642788, 0.766044, -0.766044, 0.642788, 0, 0)&quot;
This would be nicer because currently, commas are used for separating value AND for decimal separator.
That&apos;s not very convenient. Moreover, Javascript&apos;s parseFloat expects a dot for decimal separator.

This is the same behavior for opacity : if I set d.style.opacity=&quot;0.5&quot;, I get &quot;0,5&quot;. So that&apos;s not a -webkit-transform specific issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>246208</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-02 20:20:49 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 18994 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>