Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 2-ui/1-document/07-modifying-document/5-why-aaa/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ importance: 1

# Why does "aaa" remain?

Run the example. Why does `table.remove()` not delete the text `"aaa"`?
Run the example. Why does `table.remove()` not delete the text `"aaa"` but does delete the table
when table.remove() is uncommented?

```html height=100 run
<table id="table">
Expand All @@ -17,7 +18,7 @@ Run the example. Why does `table.remove()` not delete the text `"aaa"`?
<script>
alert(table); // the table, as it should be

table.remove();
//table.remove();
// why there's still aaa in the document?
</script>
```