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

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>56188</bug_id>
          
          <creation_ts>2003-03-20 21:48:31 +0000</creation_ts>
          <short_desc>[test case] dhtml causes form corruption when going back to previous page.</short_desc>
          <delta_ts>2008-04-21 10:20:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml forms</component>
          <version>3.5</version>
          <rep_platform>Mandrake RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>grave</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon Gabrielson">jonkde</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>jens-bugs.kde.org</cc>
    
    <cc>maksim</cc>
    
    <cc>mueller</cc>
    
    <cc>nick</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>30</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124284</commentid>
    <comment_count>0</comment_count>
    <who name="Jon Gabrielson">jonkde</who>
    <bug_when>2003-03-20 21:48:32 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
OS:          Linux

By clicking on the link a couple times, then clicking on submit, then clicking the back button,
the submit button is corrupted.

&lt;html&gt;
 &lt;a href=# onclick=displayfrequency()&gt;corruptform&lt;/a&gt;

 &lt;form action=http://www.google.com/&quot; METHOD=GET&gt;
 &lt;span id=&quot;spanfrequency&quot;&gt;
 &lt;select name=&quot;frequency2&quot;&gt;
 &lt;option value=&quot;15&quot;&gt;Every 15 minutes
 &lt;/select&gt;
 &lt;/span&gt;
 &lt;input type=submit value=&quot;SUBMIT&quot;&gt;
 &lt;/form&gt;

 &lt;script&gt; 
 function displayfrequency() 
 { 
 spanfrequency.innerHTML = 
 &quot;&lt;select name=\&quot;frequency\&quot;&gt;&quot; + 
 &quot;&lt;option value=\&quot;15\&quot;&gt;Every 15 minutes&quot; + 
 &quot;&lt;option value=\&quot;30\&quot;&gt;Every 30 minutes&quot; + 
 &quot;&lt;/select&gt;&quot;; 
 } 
 &lt;/script&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284668</commentid>
    <comment_count>1</comment_count>
      <attachid>8240</attachid>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-11-10 21:07:47 +0000</bug_when>
    <thetext>Created attachment 8240
test case

excellent test case. I saw it before, but never could reproduce it reliable</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412695</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-02-09 02:24:08 +0000</bug_when>
    <thetext>As far as I can see, the restoration code simply can&apos;t handle stuff being added to document in order other than parse order. Now, the DOM proper doesn&apos;t trigger the problem because the parser isn&apos;t involved, but innerHTML  uses the parser, of course. I think Apple actually has a solution for this --- 
http://www.cs.cornell.edu/~maksim/WC/changesets/1503.html
(later amended to not restore passwords wrong) --- the core idea is nice, though I am not sure I like the implementation details.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421111</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-03-11 19:12:46 +0000</bug_when>
    <thetext>*** Bug 74343 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>494419</commentid>
    <comment_count>4</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-12-17 16:55:02 +0000</bug_when>
    <thetext>*** Bug 138905 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586777</commentid>
    <comment_count>5</comment_count>
    <who name="Werner">werner.inpublic</who>
    <bug_when>2008-03-13 23:52:14 +0000</bug_when>
    <thetext>for what it&apos;s worth: since a few days my favourite site http://www.google.com/advanced_search is broken with konqueror (on different linux systems). I guess google has started using content konqueror can&apos;t deal with. Just enter any search term, press enter (all fields are ignored in my case but that might as well be another bug), press back button =&gt; some fields contain &quot;...X&quot;, &quot;X...&quot; and other garbage.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586951</commentid>
    <comment_count>6</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-14 18:34:40 +0000</bug_when>
    <thetext>Ugh. I guess I can&apos;t defer this one any more..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589323</commentid>
    <comment_count>7</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-25 17:32:14 +0000</bug_when>
    <thetext>SVN commit 789902 by orlovich:

Be more careful not to make a mistake when restoring form entries.
Still imperfect, but I am not sure what perfect means here..
CCBUG:56188


 M  +8 -5      html/html_formimpl.cpp  
 M  +2 -4      html/htmlparser.cpp  
 M  +40 -10    xml/dom_docimpl.cpp  
 M  +4 -1      xml/dom_docimpl.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=789902
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589327</commentid>
    <comment_count>8</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-25 18:12:17 +0000</bug_when>
    <thetext>SVN commit 789918 by orlovich:

automatically merged revision 789902:
Be more careful not to make a mistake when restoring form entries.
Still imperfect, but I am not sure what perfect means here..
CCBUG:56188

 M  +8 -5      html/html_formimpl.cpp  
 M  +2 -4      html/htmlparser.cpp  
 M  +40 -10    xml/dom_docimpl.cpp  
 M  +4 -1      xml/dom_docimpl.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=789918
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>592140</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Leupold">lemma</who>
    <bug_when>2008-04-06 08:01:58 +0000</bug_when>
    <thetext>Works in trunk r794020.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593122</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Leupold">lemma</who>
    <bug_when>2008-04-09 12:55:38 +0000</bug_when>
    <thetext>Still present in 3.5.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595670</commentid>
    <comment_count>11</comment_count>
    <who name="Eduardo Robles Elvira">edulix</who>
    <bug_when>2008-04-20 20:48:24 +0000</bug_when>
    <thetext>Can&apos;t reproduce in trunk 799157</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595937</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Leupold">lemma</who>
    <bug_when>2008-04-21 10:20:24 +0000</bug_when>
    <thetext>As this bug is fixed in recent releases it&apos;s being closed. Setting it to LATER because it does qualify for backporting to the 3.x branch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8240</attachid>
            <date>2004-11-10 21:07:47 +0000</date>
            <delta_ts>2004-11-10 21:07:47 +0000</delta_ts>
            <desc>test case</desc>
            <filename>t.html</filename>
            <type>text/html</type>
            <size>527</size>
            <attacher name="Stephan Kulow">coolo</attacher>
            
              <data encoding="base64">PGh0bWw+IAogIDxhIGhyZWY9IyBvbmNsaWNrPWRpc3BsYXlmcmVxdWVuY3koKT5jb3JydXB0Zm9y
bTwvYT4gCiAKICA8Zm9ybSBhY3Rpb249aHR0cDovL3d3dy5nb29nbGUuY29tLyIgTUVUSE9EPUdF
VD4gCiAgPHNwYW4gaWQ9InNwYW5mcmVxdWVuY3kiPiAKICA8c2VsZWN0IG5hbWU9ImZyZXF1ZW5j
eTIiPiAKICA8b3B0aW9uIHZhbHVlPSIxNSI+RXZlcnkgMTUgbWludXRlcyAKICA8L3NlbGVjdD4g
CiAgPC9zcGFuPiAKICA8aW5wdXQgdHlwZT1zdWJtaXQgdmFsdWU9IlNVQk1JVCI+IAogIDwvZm9y
bT4gCiAKICA8c2NyaXB0PiAKICBmdW5jdGlvbiBkaXNwbGF5ZnJlcXVlbmN5KCkgCiAgeyAKICBz
cGFuZnJlcXVlbmN5LmlubmVySFRNTCA9IAogICI8c2VsZWN0IG5hbWU9XCJmcmVxdWVuY3lcIj4i
ICsgCiAgIjxvcHRpb24gdmFsdWU9XCIxNVwiPkV2ZXJ5IDE1IG1pbnV0ZXMiICsgCiAgIjxvcHRp
b24gdmFsdWU9XCIzMFwiPkV2ZXJ5IDMwIG1pbnV0ZXMiICsgCiAgIjwvc2VsZWN0PiI7IAogIH0g
CiAgPC9zY3JpcHQ+IAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>