<!DOCTYPE html>
<html>
<head>
<title>This tests that we don't assert on destroying the img renderer when the insertion point is wrong</title>
<script>
if (window.testRunner)
  testRunner.dumpAsText();
</script>
</head>
<body>
Pass if no assert or crash.
<table><colgroup id=foo></colgroup></table>
<script>
foo.appendChild(document.createElement("img"));
</script>
</body>
</html>
