Bug 143146

Summary: getElementById(id).innerHTML doesn't repaint/
Product: [Applications] konqueror Reporter: Norberto Bensa <nbensa>
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED LATER    
Severity: normal CC: christophe, james
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Testcase for lazy triagers :-)

Description Norberto Bensa 2007-03-18 04:47:02 UTC
Version:           3.5.6 (using KDE 3.5.6, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.20-gentoo-r3

Try this:

<html>
<head>
<script>
function sayhello() {
	document.getElementById('hello').innerHTML = 'hello world!';
}
</script>
</head>
<body>
<a href=javascript:sayhello()>click</a>
<div id='hello'></div>
</body>
</html>

When you click on "click", "hello world!" should appear but I see nothing until I click again. Firefox on the other hand, does it right.
Comment 1 Maksim Orlovich 2007-03-18 05:50:23 UTC
It does update --- it just doesn't repaint right. So it's a bug, but not my fault ;-)
Comment 2 Christophe Marin 2008-04-20 21:29:01 UTC
Created attachment 24457 [details]
Testcase for lazy triagers :-)

The issue cannot be reproduced in KDE4 trunk (r. 799086)
Comment 3 James Spahlinger 2008-04-21 11:05:00 UTC
Thanks for the test case, this is reproducible in 3.5.9. Marking to be done later if a backport is to be done.