blob: 1127274c2ec3ae4a09e7de3897e14621ca2cf221 [file] [log] [blame]
<body>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<div id=inner></div>
Test error handling for incomplete tables inside a document fragment. These should not crash or hang.
<br><br>
<div id=console></div>
<script>
var inner = document.getElementById('inner');
var console = document.getElementById('console');
function log(t)
{
var line = document.createElement('div');
line.innerText = t;
console.appendChild(line);
}
inner.innerHTML = "<tbody><table>";
log(inner.innerHTML);
inner.innerHTML = "<thead><table>";
log(inner.innerHTML);
inner.innerHTML = "<tfoot><table>";
log(inner.innerHTML);
inner.innerHTML = "<tr><table>";
log(inner.innerHTML);
inner.innerHTML = "<td><table>";
log(inner.innerHTML);
inner.innerHTML = "<th><table>";
log(inner.innerHTML);
inner.innerHTML = "<tbody><tr><table>";
log(inner.innerHTML);
inner.innerHTML = "<tbody><th><table>";
log(inner.innerHTML);
inner.innerHTML = "<tbody><td><table>";
log(inner.innerHTML);
inner.innerHTML = "<tr><tbody><table>";
log(inner.innerHTML);
inner.innerHTML = "<th><tbody><table>";
log(inner.innerHTML);
inner.innerHTML = "<td><tbody><table>";
log(inner.innerHTML);
inner.innerHTML = "<tbody><option><table>";
log(inner.innerHTML);
inner.innerHTML = "<table><option><table>";
log(inner.innerHTML);
</script>