From 361987796e8e98729be6e39eb88b406a91b14cee Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Sun, 26 May 2024 19:07:14 +0900 Subject: [PATCH] Revert "html_tools/docs: Fix old comment" This reverts commit 66a7dae381367ede985202598913b5e97019b5fb. --- changedetectionio/html_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py index 3425dc08..a4e283d6 100644 --- a/changedetectionio/html_tools.py +++ b/changedetectionio/html_tools.py @@ -117,7 +117,7 @@ def elementpath_tostring(obj): def forest_transplanting(root): """ libxml2 violates DOM rules. it means there can be multiple root element - nodes. So I choose just transplating them to a new root when the violation happens. + nodes. So I choose just transplating them to a new root by default. See also, https://gitlab.gnome.org/GNOME/libxml2/-/issues/716 This will emulate xpath1 of html of libxml2 like '/html[2]/*'. To make this function work, 'fragment=True' in elementpath.select is required.