[Webkit-unassigned] [Bug 29870] New: Actual points string is lost, Webkit normalizes it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 29 06:49:02 PDT 2009


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

           Summary: Actual points string is lost, Webkit normalizes it
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: codedread at gmail.com


Created an attachment (id=40300)
 --> (https://bugs.webkit.org/attachment.cgi?id=40300)
Test case revealing the problem.

This is similar to other webkit problems where we set a value into the DOM and
we can't get that exact value back.  Attached is a test case exhibiting the
problem.

<svg xmlns="http://www.w3.org/2000/svg">
  <polyline id="poly" fill="green" />
  <script><![CDATA[
      var poly = document.getElementById("poly");
      var points = "10,10 100,60 10,110";
      poly.setAttribute("points", points);
      if (poly.getAttribute("points") != points) {
          alert("Pass failed, points attribute equals:\n" +
poly.getAttribute("points"));
      }
  ]]></script>
</svg>

The above passes in Firefox and Opera but not in Safari/Chrome because Webkit
changes the points string into a space-separate list of numbers.  This can be a
problem if we need to build up the value of the 'points' attribute and then
need to check it at some point.  See
http://code.google.com/p/svg-edit/issues/detail?id=245


P.S. The 'Version' box in Bugzilla seems to be missing many options (Safari 4?)

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