diff options
author | Jesse Wilson <jessewilson@google.com> | 2010-03-09 16:33:18 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2010-03-09 18:07:09 -0800 |
commit | df138faff880612d97a8e6e3fa344a91ae9d96ac (patch) | |
tree | 787d03324e17c6e1e858a539de905be8046414f1 /include/ScopedJavaUnicodeString.h | |
parent | ec02394f92b3ff460543dad5c57bc2ee6474683f (diff) |
Implement adoptNode() and importNode().
importNode() shares all of its implementation with Node.clone();
the only areas they differ are the ones we don't support. The
shared code is in 2 new methods, shallowCopy() and cloneOrImportNode(),
both based on the old clone() method.
Also removing some unnecessary "throws DOMException" clauses.
The tests for the new methods are slightly cumbersome. Most move/copy
nodes to another document, serialize that, and compare.
Change-Id: Id9fb076e020d8327a8f70da401af9bd95d7a3d1b
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions