Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/tabular-data/the-table-element/insertRow-method-01.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>insertRow(): INDEX_SIZE_ERR</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<div id="test">
<table>
<tr>
<td>
</table>
</div>
<script>
test(function() {
var table = document.getElementById("test").getElementsByTagName("table")[0];
assert_throws_dom("INDEX_SIZE_ERR", function() {
table.insertRow(-2);
})
assert_throws_dom("INDEX_SIZE_ERR", function() {
table.insertRow(2);
})
});
</script>