Skip to content

Commit c4a9590

Browse files
committed
Update docstring
1 parent 1224517 commit c4a9590

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

selectolax/lexbor.pyx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,13 @@ cdef class LexborHTMLParser:
334334
return obj
335335

336336
def clone(self):
337-
"""Clone the current tree."""
337+
"""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+
"""
338344
cdef lxb_html_document_t* cloned_document
339345
cdef lxb_dom_node_t* cloned_node
340346
cdef LexborHTMLParser cls

0 commit comments

Comments
 (0)