OpenTermsArchive / engine

Tracks contractual documents and exposes changes to the terms of online services.
https://opentermsarchive.org
European Union Public License 1.2
111 stars 30 forks source link

Ensure to not remove nodes when selecting them #913

Closed Ndpnt closed 2 years ago

Ndpnt commented 2 years ago

Fixes https://github.com/ambanum/OpenTermsArchive/issues/897

Ndpnt commented 2 years ago

Very good, have you understood why the only fact to use it with appendChild removed it from the whole document?

appendChild moves the original node. So, as we move nodes from one fragment to another, it is removed from the first one.