<?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>29870</bug_id>
          
          <creation_ts>2009-09-29 06:49:02 -0700</creation_ts>
          <short_desc>Actual points string is lost, Webkit normalizes it</short_desc>
          <delta_ts>2026-04-01 07:55:52 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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 name="Jeff Schiller">jeffschiller</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>krit</cc>
    
    <cc>rniwa</cc>
    
    <cc>rwlbuis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150893</commentid>
    <comment_count>0</comment_count>
      <attachid>40300</attachid>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2009-09-29 06:49:02 -0700</bug_when>
    <thetext>Created attachment 40300
Test case revealing the problem.

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

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

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 &apos;points&apos; 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 &apos;Version&apos; box in Bugzilla seems to be missing many options (Safari 4?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404903</commentid>
    <comment_count>1</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-05-16 19:37:52 -0700</bug_when>
    <thetext>Seems fixed nowadays.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404963</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-17 00:08:56 -0700</bug_when>
    <thetext>Rob, would it make sense to land the test, or do you expect this to be covered already?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405023</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-05-17 05:29:15 -0700</bug_when>
    <thetext>Hi Alexey,

(In reply to comment #2)
&gt; Rob, would it make sense to land the test, or do you expect this to be covered already?

Good point. I think poly-points-attribute-changes.svg comes really close. It just uses getAttributeNode instead of getAttribute. Assuming both getAttribute and getAttributeNode will use the same internal Attr (which I think is the case) then we do not need the test below. What do you think?
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>407702</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2011-05-22 14:10:24 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Seems fixed nowadays.
&gt; Cheers,
&gt; 
&gt; Rob.

The problem here is, that Jeff wants to get the unnormalizd (original string) back. At least if I get it correct. IIRC we don&apos;t do this, we just changed our code to comma separated the axis of a point. If you add a space or something else, you can&apos;t get the original string back right now. So it is not fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873785</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-02 21:08:19 -0700</bug_when>
    <thetext>We match with other browser on attached test case but I don&apos;t know whether we have test coverage for the following or not. Appreciate if someone can confirm whether it needs test coverage or not. Else it can be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873786</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-02 21:08:23 -0700</bug_when>
    <thetext>We match with other browser on attached test case but I don&apos;t know whether we have test coverage for the following or not. Appreciate if someone can confirm whether it needs test coverage or not. Else it can be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195906</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-04-01 07:55:52 -0700</bug_when>
    <thetext>Per Ahmad comments.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>40300</attachid>
            <date>2009-09-29 06:49:02 -0700</date>
            <delta_ts>2009-09-29 06:49:02 -0700</delta_ts>
            <desc>Test case revealing the problem.</desc>
            <filename>polyline-webkit.svg</filename>
            <type>image/svg+xml</type>
            <size>383</size>
            <attacher name="Jeff Schiller">jeffschiller</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwb2x5bGluZSBpZD0i
cG9seSIgZmlsbD0iZ3JlZW4iIC8+CiAgPHNjcmlwdD48IVtDREFUQVsKICAJdmFyIHBvbHkgPSBk
b2N1bWVudC5nZXRFbGVtZW50QnlJZCgicG9seSIpOwogIAl2YXIgcG9pbnRzID0gIjEwLDEwIDEw
MCw2MCAxMCwxMTAiOwogIAlwb2x5LnNldEF0dHJpYnV0ZSgicG9pbnRzIiwgcG9pbnRzKTsKICAJ
aWYgKHBvbHkuZ2V0QXR0cmlidXRlKCJwb2ludHMiKSAhPSBwb2ludHMpIHsKICAJCWFsZXJ0KCJQ
YXNzIGZhaWxlZCwgcG9pbnRzIGF0dHJpYnV0ZSBlcXVhbHM6XG4iICsgcG9seS5nZXRBdHRyaWJ1
dGUoInBvaW50cyIpKTsKICAJfQogIF1dPjwvc2NyaXB0Pgo8L3N2Zz4=
</data>

          </attachment>
      

    </bug>

</bugzilla>