andy lau
2010-04-27 21:45:03 UTC
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?
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?