Bug 134967

Summary: change tbody.innerHTML using javascript results in DOM Exception 7
Product: [Applications] konqueror Reporter: Andreas Grau <kde>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: maksim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Grau 2006-10-02 01:22:12 UTC
Version:           3.5.4 (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Try to display following html page

<table><tbody id='foo'>
	<tr><td>bar</td></tr>
</tbody></table>
<script type="text/javascript">
	document.getElementById('foo').innerHTML = "<tr><td>baz</td></tr>";
</script>

results in JavaScript Error 'Error: DOM exception 7'
Comment 1 Maksim Orlovich 2006-10-06 05:37:03 UTC
We seem to explicitly disable this, probably for IE compatibility (didn't they invent this, anyway?), but it's not that trivial to check as removing the check since the activated parser may create implicit table/tbody/whatever elements.

Comment 2 Maksim Orlovich 2006-11-15 18:15:13 UTC

*** This bug has been marked as a duplicate of 137408 ***