lexbor / lexbor

Lexbor is development of an open source HTML Renderer library. https://lexbor.com
Apache License 2.0
1.61k stars 106 forks source link

Copy elements/nodes #31

Closed trikko closed 3 years ago

trikko commented 5 years ago

Is there a way to make a (deep?) copy of an element/node? I can't find any fast way to do this. Copying element content and reparsing seems not the best performance option...

lexborisov commented 5 years ago

Hi @trikko , There are currently no cloning features. This is not complicated functionality and I think it is necessary to add it. I'll do it soon.

Thank you for the report!

P.S.:

Copying element content and reparsing seems not the best performance option...

It is really bad way.

lexborisov commented 3 years ago

@trikko

Added in https://github.com/lexbor/lexbor/commit/0c4010b10a922a45513d67beec0ddd29c2951f85.