<?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>15045</bug_id>
          
          <creation_ts>2007-08-22 06:42:39 -0700</creation_ts>
          <short_desc>&amp;t being added to the top of a textarea, and a &gt; is being replaced by a ;</short_desc>
          <delta_ts>2022-07-12 10:51:21 -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>Forms</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Terry Riegel">riegel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>justin.garcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1735</commentid>
    <comment_count>0</comment_count>
    <who name="Terry Riegel">riegel</who>
    <bug_when>2007-08-22 06:42:39 -0700</bug_when>
    <thetext>This one is hard to duplicate. I have a very fragile test case that I can duplicate the problem on. I would be happy to show someone but it may be difficult to demonstrate with out me stepping through the procedure.

The bug happens intermitently and isn&apos;t always caught by me. I use Safari to edit web sites, and when this bug cropps up my page gets mangled. It doesn&apos;t happen all of the time. This is a test case where I was able to get it to happen over and over again.

Here is how to duplicate it.

1. go to http://www.clearimageonline.com/pages/start/login.html
  login as webkit, password: webkittestcase
2. Click the little icon next to snipshot.html
3. This opens a web editor right after the text &quot;...it messes up frames&quot; add a space and save
4. What happens is &amp;t gets added to the start of the text in the textarea, and a &gt; gets replaced with a ;
5. If you do a view source you can see that the sources does not contain these spurious characters.
6. If you save again it will sve the spurious characters.

THE TEXT BEFORE LOOKS LIKE
------------------------
&lt;&lt;
function snipshot(f,edittext,cx,cy) locals temp,a,original do
 # Use snipshot to edit the images, always save the original, see code below /#
 if left(f,1)&lt;&gt;&apos;/&apos; then f=replaceall(dirname(page)+&apos;/&apos;+f,&apos;//&apos;,&apos;/&apos;) /if
 if isfile(f) then
  a=ci_extract(f)
  original=a[1]+a[6]+a[2]+ci_prefs[1,4]+&apos;-ORIGINAL&apos;+a[4]
  if not(isfile(original)) then temp=syscp(f,original) /if
  if isfile(&apos;/upload/file&apos;+usernum) then
   temp=sysmv(original,f+&apos;ORIGINAL&apos;)
   temp=ci_rmtemp(f)
   temp=sysmv(f+&apos;ORIGINAL&apos;,original)
   temp=sysmv(&apos;/upload/file&apos;+usernum,f)
  /if
  if cx=&apos;&apos; or cy=&apos;&apos; then
   return &apos;&lt;a exithref=&quot;http://services.snipshot.com/?snipshot_input=&apos;+domainurl+postprep(replaceall(&apos;/&apos;+original,&apos;//&apos;,&apos;/&apos;))+&apos;&amp;snipshot_callback=&apos;+postprep(getlink(page))+&apos;&amp;snipshot_output=file&apos;+usernum+&apos;&amp;snipshot_callback_method=post&quot;&gt;&apos;+edittext+&apos;&lt;/a&gt;&apos; /return
  else
   return &apos;&lt;a exithref=&quot;http://services.snipshot.com/?snipshot_input=&apos;+domainurl+postprep(replaceall(&apos;/&apos;+original,&apos;//&apos;,&apos;/&apos;))+&apos;&amp;snipshot_callback=&apos;+postprep(getlink(page))+&apos;&amp;snipshot_output=file&apos;+usernum+&apos;&amp;snipshot_callback_method=post&amp;snipshot_output_options=&apos;+postprep(&apos;{&quot;size&quot;:{&quot;max&quot;:{&quot;width&quot;:&apos;+cx+&apos;,&quot;height&quot;:&apos;+cy+&apos;}}}&apos;)+&apos;&quot;&gt;&apos;+edittext+&apos;&lt;/a&gt;&apos; /return
  /if
 else
  return &apos;&apos; /return
 /if
/function
f=&apos;test.jpg&apos;
&gt;&gt;
&lt;html&gt;
&lt;a href=&quot;&lt;&lt;page&gt;&gt;&quot;&gt;RELOAD&lt;/a&gt;  |  &lt;a href=&quot;&lt;&lt;page&gt;&gt;&quot; target=&quot;new&quot;&gt;OPEN IN NEW WINDOW&lt;/a&gt;&lt;hr&gt;
&lt;&lt;ci_img(f,&apos;&apos;,&apos;&apos;,&apos;TRUE&apos;)&gt;&gt;
&lt;br&gt;Make sure you run this in its own window. It messes up frames&lt;hr&gt;
&lt;&lt;snipshot(f,&apos;Edit This Picture&apos;,90,125)&gt;&gt;
&lt;/html&gt;


THE TEXT AFTER LOOKS LIKE
------------------------
&amp;t&lt;&lt;
function snipshot(f,edittext,cx,cy) locals temp,a,original do
 # Use snipshot to edit the images, always save the original, see code below /#
 if left(f,1)&lt;&gt;&apos;/&apos; then f=replaceall(dirname(page)+&apos;/&apos;+f,&apos;//&apos;,&apos;/&apos;) /if
 if isfile(f) then
  a=ci_extract(f)
  original=a[1]+a[6]+a[2]+ci_prefs[1,4]+&apos;-ORIGINAL&apos;+a[4]
  if not(isfile(original)) then temp=syscp(f,original) /if
  if isfile(&apos;/upload/file&apos;+usernum) then
   temp=sysmv(original,f+&apos;ORIGINAL&apos;)
   temp=ci_rmtemp(f)
   temp=sysmv(f+&apos;ORIGINAL&apos;,original)
   temp=sysmv(&apos;/upload/file&apos;+usernum,f)
  /if
  if cx=&apos;&apos; or cy=&apos;&apos; then
   return &apos;&lt;a exithref=&quot;http://services.snipshot.com/?snipshot_input=&apos;+domainurl+postprep(replaceall(&apos;/&apos;+original,&apos;//&apos;,&apos;/&apos;))+&apos;&amp;snipshot_callback=&apos;+postprep(getlink(page))+&apos;&amp;snipshot_output=file&apos;+usernum+&apos;&amp;snipshot_callback_method=post&quot;;&apos;+edittext+&apos;&lt;/a&gt;&apos; /return
  else
   return &apos;&lt;a exithref=&quot;http://services.snipshot.com/?snipshot_input=&apos;+domainurl+postprep(replaceall(&apos;/&apos;+original,&apos;//&apos;,&apos;/&apos;))+&apos;&amp;snipshot_callback=&apos;+postprep(getlink(page))+&apos;&amp;snipshot_output=file&apos;+usernum+&apos;&amp;snipshot_callback_method=post&amp;snipshot_output_options=&apos;+postprep(&apos;{&quot;size&quot;:{&quot;max&quot;:{&quot;width&quot;:&apos;+cx+&apos;,&quot;height&quot;:&apos;+cy+&apos;}}}&apos;)+&apos;&quot;&gt;&apos;+edittext+&apos;&lt;/a&gt;&apos; /return
  /if
 else
  return &apos;&apos; /return
 /if
/function
f=&apos;test.jpg&apos;
&gt;&gt;
&lt;html&gt;
&lt;a href=&quot;&lt;&lt;page&gt;&gt;&quot;&gt;RELOAD&lt;/a&gt;  |  &lt;a href=&quot;&lt;&lt;page&gt;&gt;&quot; target=&quot;new&quot;&gt;OPEN IN NEW WINDOW&lt;/a&gt;&lt;hr&gt;
&lt;&lt;ci_img(f,&apos;&apos;,&apos;&apos;,&apos;TRUE&apos;)&gt;&gt;
&lt;br&gt;Make sure you run this in its own window. It messes up frames&lt;hr&gt;
&lt;&lt;snipshot(f,&apos;Edit This Picture&apos;,90,125)&gt;&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1715</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-22 09:48:09 -0700</bug_when>
    <thetext>Based on the description, I&apos;m guessing that &quot;&gt;&quot; or &quot;&lt;&quot; is being replaced by &quot;&amp;lt;&quot; or &quot;&amp;gt;&quot; in the DOM, but then something bad happens and those literal values are edited into &quot;&amp;t&quot; or &quot;;&quot;.  A reproducible test case would really help in this instance.

Terry, does this happen while you&apos;re typing/editing the text?

Are you using Safari 3 Public Beta v. 3.0.3?  A WebKit nightly?  Safari 2.0.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1714</commentid>
    <comment_count>2</comment_count>
    <who name="Terry Riegel">riegel</who>
    <bug_when>2007-08-22 10:17:22 -0700</bug_when>
    <thetext>I have a reproducable test case, but it is like standing on my hands while holding a cup of coffe with my toes and touching the TV antanae to get good reception. I noticed it when Safari 3 first came out. It was/is of a severe enough nature that I had to stop using safari 3 since it would mess up my code.

It happens when the page loads. Sometimes it will happen just by opening the page, other times (like the one I was able to duplicate) it happens after some sequence of editing and the page is saved/reloaded.

If you call me (252)437-7771 ext 227 I can step you through a reproducable test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1654</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-22 21:26:44 -0700</bug_when>
    <thetext>Terry, do you have SnapzPro?  If so, you could create a demonstration movie with narration.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882427</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 10:51:21 -0700</bug_when>
    <thetext>The relevant test case no longer exists.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>