Menu

#23 patch to allow cloning between docs and cloning attrs

open
TclDOM (9)
5
2009-08-27
2009-07-12
No

Attached is a patch against 3.2 which extends the functionality of the dom::node cloneNode sub-command.
New extended syntax is:
dom::node cloneNode token ?newDoc? ?-deep boolean? ?-attr boolean?
If newDoc is supplied, node will be cloned into this document - default is to clone into same document as original node. This is useful if you are creating a new document and want to include bits from other documents verbatim.
If attr option is set, attributes of the node are cloned in addition to the node itself.

Discussion

  • Olly Stephens

    Olly Stephens - 2009-07-12

    patch file

     
  • Steve Ball

    Steve Ball - 2009-08-27
    • assigned_to: nobody --> balls
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.