|
|
|
|
|
by simion314
1494 days ago
|
|
There is an issue you need to be aware , be careful if you hide the fact that this collection is "live". I mean this part from the docs >An HTMLCollection in the HTML DOM is live; it is automatically updated when the underlying document is changed. For this reason it is a good idea to make a copy (eg. using Array.from) to iterate over if adding, moving, or removing nodes. So you need something that will also be efficient and correct, not a 5 minutes implementation. |
|