How can I clone a Node with certain attributes filter out
andy lau <[email protected]> Tue, 27 Apr 2010 14:45:03 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <6ec7f641-034f-40c7-b370-a5f62aea7878@u20g2000pru.googlegroups.com> |
Hi, I am trying to clone a Node but with certain attribute filtered out (e.g. skip 'class' attribute, but clone everything else). I have looked at the implementation of CloneNode() method which calls :CloneNodeImpl(). http://mxr.mozilla.org/mozilla1.9.1/source/content/base/src/nsNodeUtils.cpp#417 I don't know if there is a way to customize the CloneNode() for my purpose? Thank you for any pointers/suggestions?