en.javascript.info/2-ui/1-document/07-modifying-document/5-why-aaa/task.md
Ilya Kantor d85be5f17b up
2017-03-05 19:49:29 +03:00

23 lines
338 B
Markdown

importance: 1
---
# Why "aaa" remains?
Run the example. Why `table.remove()` does not delete the text `"aaa"`?
```html height=100 run
<table id="table">
aaa
<tr>
<td>Test</td>
</tr>
</table>
<script>
alert(table); // the table, as it should be
table.remove();
// why there's still aaa in the document?
</script>
```