Bug 143146 - getElementById(id).innerHTML doesn't repaint/
Summary: getElementById(id).innerHTML doesn't repaint/
Status: RESOLVED LATER
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-18 04:47 UTC by Norberto Bensa
Modified: 2008-04-21 11:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase for lazy triagers :-) (212 bytes, text/html)
2008-04-20 21:29 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
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.