Version: 4.4.5 (using KDE 4.4.5) OS: Linux If <span></span> is empty, it does not changed if i run .innerHTML = 'asdf'; Reproducible: Always Steps to Reproduce: Set focus into f1 INPUT and press UP and DOWN keys several times. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript"></script> <style type="text/css"> #r2 { position: absolute; } </style> <script type="text/javascript" charset="utf-8"> //<![CDATA[ document.observe("dom:loaded", function() { Event.observe('f1', 'keyup', (function() { var input = $('f1'); var r1 = $('r1'); var r2 = $('r2'); return function (e) { if (e.keyCode == Event.KEY_DOWN) { r1.innerHTML = ''; r2.innerHTML = ' '; } else if (e.keyCode == Event.KEY_UP) { r1.innerHTML = input.value; r2.innerHTML = input.value; } } })()); }); //]]> </script> </head> <body> <form id="crash" action=""> <div id="clean"> SPAN without &nbsp; <span id="r1"> </span> <br/> SPAN with &nbsp; <span id="r2"> </span> <br/><input type="text" id="f1" value="val"></input> </div> </form> </body> </html> Actual Results: r2 is changing, but r1 is changed only once. Expected Results: r1 and r2 should look the same on the screen and change simultaneously.
DOM update is fine, so it's indeed the rendering portion that's missing
Thank you for the bug report. As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.
> we ask if you can please confirm that the issue still persists. Yes, I copy-paste HTML from first message and test behaviour with Konqueror 4.14.13 KDE 4.14.38 Slackware 14.2 I confirm that with this versions the issue still persists.
Dear user, KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6. Please migrate to use a QWebEngine based HTML component. We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes. For security issues, please see: https://kde.org/info/security/ Sorry that we did not fix this issue during the life-time of KHTML. Greetings Christoph Cullmann