dom3: fix case where target is a text node
Merge pull request #6 from component/fix/text-node

dom3: fix case where target is a text node