We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1224517 commit c4a9590Copy full SHA for c4a9590
selectolax/lexbor.pyx
@@ -334,7 +334,13 @@ cdef class LexborHTMLParser:
334
return obj
335
336
def clone(self):
337
- """Clone the current tree."""
+ """Clone the current node.
338
+
339
+ You can use to do temporary modifications without affecting the original HTML tree.
340
341
+ It is tied to the current parser instance.
342
+ Gets destroyed when parser instance is destroyed.
343
+ """
344
cdef lxb_html_document_t* cloned_document
345
cdef lxb_dom_node_t* cloned_node
346
cdef LexborHTMLParser cls
0 commit comments